dockerfile

This commit is contained in:
2025-04-20 14:36:23 +03:00
parent e71ff0b785
commit bbc0b07cfe

13
Dockerfile Normal file
View 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"]