worker/Dockerfile

14 lines
430 B
Docker
Raw Normal View History

2025-05-15 13:51:00 +00:00
FROM gitea.pena/penadevops/container-images/golang:main as build
2024-02-19 18:20:09 +00:00
WORKDIR /app
COPY . .
2024-06-17 18:05:21 +00:00
RUN apk add git
2024-02-19 18:20:09 +00:00
RUN go mod download
2024-04-09 16:54:30 +00:00
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o wrkr ./main.go
2024-02-19 18:20:09 +00:00
2025-05-15 13:51:00 +00:00
FROM gitea.pena/penadevops/container-images/alpine:main
2024-02-19 18:20:09 +00:00
COPY --from=build /app/wrkr .
ENV IS_PROD_LOG=false
ENV IS_PROD=false
ENV PG_CRED="host=postgres port=5432 user=squiz password=Redalert2 dbname=squiz sslmode=disable"
CMD ["/wrkr"]