1
0
mirror of https://github.com/nitezs/sub2sing-box.git synced 2024-12-23 20:54:42 -05:00

add: docker-compose

This commit is contained in:
Nite07 2024-03-17 14:02:47 +08:00
parent 306acdab44
commit 3feeb66f68
2 changed files with 9 additions and 0 deletions

View File

@ -13,5 +13,6 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w -X sub2clash/
FROM alpine:latest
COPY --from=builder /app/sub2sing-box /app/sub2sing-box
COPY --from=builder /app/template /app/template
ENTRYPOINT ["/app/sub2sing-box","server"]

8
docker-compose.yaml Normal file
View File

@ -0,0 +1,8 @@
services:
sub2sing-box:
image: nite07/sub2sing-box:latest
container_name: sub2sing-box
volumes:
- ./template:/app/template
ports:
- 8080:8080