mirror of
https://github.com/bestnite/sub2sing-box.git
synced 2025-10-25 16:51:01 +00:00
fix: docker
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -10,9 +10,17 @@ ARG version
|
||||
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w -X sub2clash/config.Version=${version}" -o sub2sing-box main.go
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
COPY --from=builder /app/sub2sing-box /app/sub2sing-box
|
||||
COPY --from=builder /app/template /app/template
|
||||
COPY --from=builder /app/templates /app/templates-origin
|
||||
COPY --from=builder /app/entrypoint.sh /app/entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/app/sub2sing-box","server"]
|
||||
RUN chmod +x /app/entrypoint.sh
|
||||
|
||||
VOLUME [ "/app/templates" ]
|
||||
EXPOSE 8080
|
||||
|
||||
ENTRYPOINT ["/app/entrypoint.sh"]
|
||||
|
||||
Reference in New Issue
Block a user