forgejo-release-proxy/Dockerfile
Adora Laura Kalb 770811d2a9
Some checks failed
ci/woodpecker/tag/build-and-deploy/3 Pipeline was successful
ci/woodpecker/tag/build-and-deploy/2 Pipeline was successful
ci/woodpecker/tag/build-and-deploy/1 Pipeline was successful
ci/woodpecker/tag/deploy-docker Pipeline failed
update Dockerfile
2024-08-03 17:34:18 +02:00

30 lines
577 B
Docker

FROM golang:1.22-bullseye AS dev
COPY . /var/app
WORKDIR /var/app
ENV GO111MODULE="on" \
CGO_ENABLED=0 \
GOOS=linux
EXPOSE 80
ENTRYPOINT ["sh"]
FROM dev AS build
RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --assume-yes ca-certificates make git
RUN go mod download && go mod verify
RUN make build
FROM gcr.io/distroless/static-debian12 AS prod
WORKDIR /app
COPY --from=build /var/app/forgejo-release-proxy /bin/
LABEL maintainer="Adora Laura Kalb <adora@lila.network>"
EXPOSE 8080
ENTRYPOINT ["/bin/forgejo-release-proxy"]