dockerfile
This commit is contained in:
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM golang:1.24.2-alpine3.21 as builder
|
||||
ARG CGO_ENABLED=0
|
||||
WORKDIR /app
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
|
||||
RUN go build
|
||||
|
||||
FROM scratch
|
||||
COPY --from=builder /app/server /server
|
||||
ENTRYPOINT ["/server"]
|
||||
Reference in New Issue
Block a user