summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 67c06d28c2694d6844c26d00623d0ffb22e5f0c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM golang:1.15.5 as builder

COPY . /src

WORKDIR /src

RUN set -x \
    && apt-get update -y \
    && apt-get install -y bash git \
    && go version \
    && bash ./build.sh \
    && test -f ./.rr.yaml

FROM alpine:latest

LABEL \
    org.opencontainers.image.title="roadrunner" \
    org.opencontainers.image.description="High-performance PHP application server, load-balancer and process manager" \
    org.opencontainers.image.url="https://github.com/spiral/roadrunner" \
    org.opencontainers.image.source="https://github.com/spiral/roadrunner" \
    org.opencontainers.image.vendor="SpiralScout" \
    org.opencontainers.image.licenses="MIT"

COPY --from=builder /src/rr /usr/bin/rr
COPY --from=builder /src/.rr.yaml /etc/rr.yaml

ENTRYPOINT ["/usr/bin/rr"]