mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-10-26 01:01:35 +00:00
workflow
This commit is contained in:
12
Containerfile
Normal file
12
Containerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
FROM golang:1.25 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 github.com/bestnite/sub2clash/constant.Version=${version}" -o sub2clash .
|
||||
|
||||
FROM alpine:latest
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/sub2clash /app/sub2clash
|
||||
ENTRYPOINT ["/app/sub2clash"]
|
||||
Reference in New Issue
Block a user