diff options
author | Paramtamtam <[email protected]> | 2019-12-18 11:39:57 +0500 |
---|---|---|
committer | Paramtamtam <[email protected]> | 2019-12-18 11:39:57 +0500 |
commit | 62f72e94556e093099c58eae6e2b0366f72d79c9 (patch) | |
tree | 27843291d4671cdbb8486ba39d0487a350cd1696 /Dockerfile | |
parent | fadf373c1fe5e51bfaeb9e5ac3fe4ee748620a44 (diff) |
Docker environment added
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 29 |
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"] |