Fix missing app folder
All checks were successful
docker

This commit is contained in:
ItzYanick 2023-03-24 14:26:00 +01:00
parent f59798df65
commit 325cf611de
No known key found for this signature in database
GPG key ID: 0E3DB1F28A357B8A

View file

@ -3,24 +3,19 @@ ARG CHECKOUT=main
# Go container
FROM golang:1.20.2-alpine3.17 AS GO_BUILD
ARG CHECKOUT
RUN apk fix && \
apk --no-cache --update add git make
RUN mkdir /build
RUN git clone https://code.forgejo.org/forgejo/runner.git /build/runner \
&& cd /build/runner \
&& git checkout $CHECKOUT
WORKDIR /build/runner
RUN make build
# --
# Final Container
FROM alpine:3.17
COPY --from=GO_BUILD /build/runner/forgejo-runner /app
RUN mkdir /app
COPY --from=GO_BUILD /build/runner/forgejo-runner /app/forgejo-runner
WORKDIR /app
CMD ["./forgejo-runner", "daemon"]