mirror of https://code.forgejo.org/forgejo/runner
[FORGEJO] run the Docker entrypoint via tini
parent
f82d6e49ca
commit
fb239e3203
17
Dockerfile
17
Dockerfile
|
@ -1,15 +1,16 @@
|
||||||
#Build stage
|
FROM golang:1.21-alpine3.18 as builder
|
||||||
FROM golang:1.21-alpine3.18 AS build-env
|
# Do not remove `git` here, it is required for getting runner version when executing `make build`
|
||||||
|
RUN apk add --no-cache make git
|
||||||
RUN apk --no-cache add build-base git
|
|
||||||
|
|
||||||
COPY . /srv
|
COPY . /srv
|
||||||
WORKDIR /srv
|
WORKDIR /srv
|
||||||
RUN make build
|
|
||||||
|
RUN make clean && make build
|
||||||
|
|
||||||
FROM alpine:3.18
|
FROM alpine:3.18
|
||||||
LABEL maintainer="contact@forgejo.org"
|
RUN apk add --no-cache git bash tini
|
||||||
|
|
||||||
COPY --from=build-env /srv/forgejo-runner /bin/forgejo-runner
|
COPY --from=builder /srv/forgejo-runner /bin/forgejo-runner
|
||||||
|
COPY scripts/run.sh /opt/act/run.sh
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/forgejo-runner"]
|
ENTRYPOINT ["/sbin/tini","--","/opt/act/run.sh"]
|
||||||
|
|
Loading…
Reference in New Issue