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

19 lines
408 B
Docker
Raw Normal View History

2024-03-12 12:11:34 -04:00
FROM golang:1.21 as builder
LABEL authors="nite07"
WORKDIR /app
COPY . .
RUN go mod download
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
FROM alpine:latest
COPY --from=builder /app/sub2sing-box /app/sub2sing-box
2024-03-17 02:02:47 -04:00
COPY --from=builder /app/template /app/template
2024-03-12 12:11:34 -04:00
ENTRYPOINT ["/app/sub2sing-box","server"]