feat: add Dockerfile and README for project setup

This commit is contained in:
Fd
2026-08-13 17:12:00 +07:00
parent 0dee507221
commit f25b092a9a
2 changed files with 38 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
FROM golang:1.25-alpine AS build
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY main.go ./
RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /pois .
FROM gcr.io/distroless/static-debian12:nonroot
COPY --from=build /pois /pois
ENTRYPOINT ["/pois"]