core/Dockerfile

18 lines
503 B
Docker
Raw Normal View History

2025-04-19 23:01:02 +00:00
FROM gitea.pena/penadevops/container-images/golang:main as build
2024-03-13 18:23:46 +00:00
WORKDIR /app
RUN apk add git
COPY . .
RUN go mod download
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o core
2025-04-19 23:01:02 +00:00
FROM gitea.pena/penadevops/container-images/alpine:main
2024-03-13 18:23:46 +00:00
COPY --from=build /app/core .
2024-03-24 10:08:54 +00:00
COPY --from=build /app/schema /schema
2024-03-13 18:23:46 +00:00
EXPOSE 1488
ENV IS_PROD_LOG=false
ENV IS_PROD=false
ENV PORT=1488
ENV PG_CRED="host=postgres port=5432 user=squiz password=Redalert2 dbname=squiz sslmode=disable"
2024-06-20 21:43:57 +00:00
RUN apk add tzdata
2024-03-13 18:23:46 +00:00
CMD ["/core"]