summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2022-01-19 10:21:55 +0300
committerGitHub <[email protected]>2022-01-19 10:21:55 +0300
commitb49a0b183b234efcbd5e58bea5433439ab037a84 (patch)
treede6f408173dcc82837aebe4062980ed47fbe1aaa /Dockerfile
parentbd934bb4dcdcb65e183ad642de3071a712fd618b (diff)
parent1b451b0e9e3c6970ee1ed5aec94ee0ffcf008f4e (diff)
[#944]: release: `v2.7.3`v2.7.3
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index 5ecd3752..261b2511 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -16,9 +16,11 @@ ENV LDFLAGS="-s \
-X github.com/roadrunner-server/roadrunner/v2/internal/meta.buildTime=$BUILD_TIME"
# compile binary file
-RUN set -x \
- && CGO_ENABLED=0 go build -trimpath -ldflags "$LDFLAGS" -o ./rr ./cmd/rr \
- && ./rr -v
+RUN set -x
+RUN go mod download
+RUN go mod tidy
+RUN CGO_ENABLED=0 go build -trimpath -ldflags "$LDFLAGS" -o ./rr ./cmd/rr
+RUN ./rr -v
# Image page: <https://hub.docker.com/_/alpine>
# https://alpinelinux.org/posts/Alpine-3.13.4-released.html
@@ -31,7 +33,7 @@ ARG BUILD_TIME="undefined"
LABEL \
org.opencontainers.image.title="roadrunner" \
- org.opencontainers.image.description="High-performance PHP application server, load-balancer and process manager" \
+ org.opencontainers.image.description="High-performance PHP application server, load-balancer, process manager written in Go and powered with plugins" \
org.opencontainers.image.url="https://github.com/roadrunner-server/roadrunner" \
org.opencontainers.image.source="https://github.com/roadrunner-server/roadrunner" \
org.opencontainers.image.vendor="SpiralScout" \