trashlog/Dockerfile
skeris 18868d3fdf
All checks were successful
Deploy / CreateImage (push) Successful in 1m43s
Deploy / DeployService (push) Successful in 1m13s
update staging envs to split staging table from production
2024-12-09 21:26:52 +03:00

10 lines
304 B
Docker

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