update Dockerfile
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

This commit is contained in:
Adora Laura Kalb 2024-08-03 17:34:18 +02:00
parent 612b29cda6
commit 770811d2a9
Signed by: adoralaura
SSH key fingerprint: SHA256:3XrkbR8ikAZJVtYfaUliX1MhmJYVAe/ocIb/MiDHBJ8

View file

@ -12,12 +12,11 @@ EXPOSE 80
ENTRYPOINT ["sh"]
FROM dev as build
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
RUN chmod +x forgejo-release-proxy
FROM gcr.io/distroless/static-debian12 AS prod