diff options
author | Earl Warren <contact@earl-warren.org> | 2023-04-30 18:13:11 +0200 |
---|---|---|
committer | Earl Warren <contact@earl-warren.org> | 2023-08-23 14:44:47 +0200 |
commit | e9ba98411e4b1b805e5c2900765d5dbbcb11dcad (patch) | |
tree | 6094ce91214bc4d3bea3ce63afe18083486a3596 /Dockerfile | |
parent | [FORGEJO] delete files conflicting with Forgejo (diff) | |
download | forgejo-runner-e9ba98411e4b1b805e5c2900765d5dbbcb11dcad.tar.xz forgejo-runner-e9ba98411e4b1b805e5c2900765d5dbbcb11dcad.zip |
[FORGEJO] build forgejo-runner
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0fdae4a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +#Build stage +FROM golang:1.20-alpine3.17 AS build-env + +RUN apk --no-cache add build-base git + +COPY . /srv +WORKDIR /srv +RUN make build + +FROM alpine:3.17 +LABEL maintainer="contact@forgejo.org" + +COPY --from=build-env /srv/forgejo-runner /bin/forgejo-runner + +ENTRYPOINT ["/bin/forgejo-runner"] |