From 3feeb66f68d6eb0e006cfe5a49053add8e76a9ac Mon Sep 17 00:00:00 2001 From: nite07 Date: Sun, 17 Mar 2024 14:02:47 +0800 Subject: [PATCH] add: docker-compose --- Dockerfile | 1 + docker-compose.yaml | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 docker-compose.yaml 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