mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2024-11-24 05:38:10 +03:00
[FORGEJO] run the Docker entrypoint via tini
This commit is contained in:
parent
f82d6e49ca
commit
fb239e3203
1 changed files with 9 additions and 8 deletions
17
Dockerfile
17
Dockerfile
|
@ -1,15 +1,16 @@
|
|||
#Build stage
|
||||
FROM golang:1.21-alpine3.18 AS build-env
|
||||
|
||||
RUN apk --no-cache add build-base git
|
||||
FROM golang:1.21-alpine3.18 as builder
|
||||
# Do not remove `git` here, it is required for getting runner version when executing `make build`
|
||||
RUN apk add --no-cache make git
|
||||
|
||||
COPY . /srv
|
||||
WORKDIR /srv
|
||||
RUN make build
|
||||
|
||||
RUN make clean && make build
|
||||
|
||||
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 a new issue