summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile29
1 files changed, 29 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 00000000..66d1e311
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,29 @@
+# Image page: <https://hub.docker.com/_/golang>
+FROM golang:1.13-alpine as builder
+
+COPY . /src
+
+WORKDIR /src
+
+RUN set -x \
+ && apk add --no-cache bash \
+ && go version \
+ && bash ./build.sh \
+ && ./rr -v \
+ && test -f ./.rr.yaml
+
+FROM alpine:latest
+
+LABEL \
+ org.label-schema.name="roadrunner" \
+ org.label-schema.description="High-performance PHP application server, load-balancer and process manager" \
+ org.label-schema.url="https://github.com/spiral/roadrunner" \
+ org.label-schema.vcs-url="https://github.com/spiral/roadrunner" \
+ org.label-schema.vendor="SpiralScout" \
+ org.label-schema.license="MIT" \
+ org.label-schema.schema-version="1.0"
+
+COPY --from=builder /src/rr /usr/bin/rr
+COPY --from=builder /src/.rr.yaml /etc/rr.yaml
+
+ENTRYPOINT ["/usr/bin/rr"]