summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorEarl Warren <contact@earl-warren.org>2023-04-30 18:13:11 +0200
committerEarl Warren <contact@earl-warren.org>2023-08-23 14:44:47 +0200
commite9ba98411e4b1b805e5c2900765d5dbbcb11dcad (patch)
tree6094ce91214bc4d3bea3ce63afe18083486a3596 /Dockerfile
parent[FORGEJO] delete files conflicting with Forgejo (diff)
downloadforgejo-runner-e9ba98411e4b1b805e5c2900765d5dbbcb11dcad.tar.xz
forgejo-runner-e9ba98411e4b1b805e5c2900765d5dbbcb11dcad.zip
[FORGEJO] build forgejo-runner
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile15
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"]