mirror of
https://github.com/renorris/openfsd
synced 2026-03-22 14:35:36 +08:00
initial commit
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM golang:1.22.1-bullseye as build
|
||||
|
||||
ENV CGO_ENABLED=1
|
||||
ENV GOOS=linux
|
||||
|
||||
WORKDIR /build
|
||||
COPY . .
|
||||
|
||||
RUN go mod download
|
||||
RUN go mod verify
|
||||
|
||||
RUN go build -ldflags='-s -w -extldflags "-static"' -o main .
|
||||
|
||||
FROM gcr.io/distroless/static-debian11
|
||||
|
||||
WORKDIR /openfsd
|
||||
|
||||
COPY --from=build /build/main .
|
||||
|
||||
CMD ["./main"]
|
||||
Reference in New Issue
Block a user