Dockerize
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-03-29 20:20:36 +03:00
parent 0443ac83d9
commit 25010ce397
5 changed files with 58 additions and 2 deletions

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM golang:1.24.1-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o app src/main.go
FROM gcr.io/distroless/static
WORKDIR /
COPY --from=builder /app/app .
CMD ["./app"]