1
0
mirror of https://github.com/nitezs/sub2clash.git synced 2024-12-23 10:44:41 -05:00
sub2clash/Dockerfile

12 lines
335 B
Docker
Raw Normal View History

2023-09-13 03:44:48 -04:00
FROM golang:1.21-alpine as builder
LABEL authors="nite07"
WORKDIR /app
COPY . .
RUN go mod download
ARG version
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w -X sub2clash/constant.Version=${version}" -o sub2clash .
2023-09-13 03:44:48 -04:00
FROM alpine:latest
2023-09-14 21:15:24 -04:00
WORKDIR /app
2023-09-13 03:44:48 -04:00
COPY --from=builder /app/sub2clash /app/sub2clash
2024-04-17 12:15:45 -04:00
ENTRYPOINT ["/app/sub2clash"]