diff --git a/Dockerfile b/Dockerfile index 8feabff..08881d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..993f734 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,8 @@ +services: + sub2sing-box: + image: nite07/sub2sing-box:latest + container_name: sub2sing-box + volumes: + - ./template:/app/template + ports: + - 8080:8080 \ No newline at end of file