Dockerify

This commit is contained in:
2024-05-15 10:02:42 -06:00
parent d3badf183c
commit a1fd9aec29
5 changed files with 65 additions and 88 deletions

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM golang:1.22.0 as build
WORKDIR /app
COPY . .
RUN go mod download
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o /go/bin/app
FROM gcr.io/distroless/base-debian12
COPY --from=build /go/bin/app /
CMD [ "/app" ]