storer/Dockerfile
skeris e8a101490a
All checks were successful
Deploy / CreateImage (push) Successful in 1m46s
Deploy / DeployService (push) Successful in 21s
fix: dockerfile build command now use right main.go
2025-04-14 22:59:02 +03:00

11 lines
297 B
Docker

FROM gitea.pena/penadevops/container-images/golang:main as build
WORKDIR /app
COPY . .
RUN apk add git
RUN go mod download
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o stor ./cmd/main.go
FROM gitea.pena/penadevops/container-images/alpine:main
COPY --from=build /app/stor .
CMD ["/stor"]