heruvym/Dockerfile
skeris 5e9e77fc16
All checks were successful
Deploy / CreateImage (push) Successful in 2m19s
Deploy / DeployService (push) Successful in 1m7s
add delve as debugger and expose it
2024-12-09 02:02:25 +03:00

15 lines
456 B
Docker

FROM gitea.pena/penadevops/container-images/golang:main as builder
WORKDIR /app
COPY . .
ENV GOPRIVATE=gitea.pena/PenaSide/linters-golang
ENV GOINSECURE=gitea.pena/PenaSide/linters-golang
RUN go mod download
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -gcflags "all=-N -l" -o heruvym cmd/main.go
FROM gitea.pena/penadevops/container-images/alpine:main
COPY --from=builder /app/heruvym .
COPY prod.key .
COPY prod.crt .
EXPOSE 1488
CMD ["/heruvym"]