worker/Dockerfile
skeris ff729b66c5
All checks were successful
Deploy / CreateImage (push) Successful in 2m40s
Deploy / ValidateConfig (push) Successful in 28s
Deploy / MigrateDatabase (push) Successful in 50s
Deploy / DeployService (push) Successful in 28s
ci: add db migration and config validation to pipeline
2025-06-05 01:58:44 +03:00

12 lines
421 B
Docker

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