storer/Dockerfile
skeris 0fffea76e6
All checks were successful
Deploy / CreateImage (push) Successful in 1m35s
Deploy / DeployService (push) Successful in 20s
ci gitea
2025-02-12 01:53:34 +03:00

16 lines
456 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 ./main.go
FROM gitea.pena/penadevops/container-images/alpine:main
COPY --from=build /app/stor .
EXPOSE 1489
ENV IS_PROD_LOG=false
ENV IS_PROD=false
ENV PORT=1489
ENV PG_CRED="host=postgres port=5432 user=squiz password=Redalert2 dbname=squiz sslmode=disable"
CMD ["/stor"]