commit e844f41abcb4b78db1f4a08ab1378fa843a536d2
parent bc532f54d5ae5728704d87fe6323843819c1fc8f
Author: Daniel GarcĂa <dani-garcia@users.noreply.github.com>
Date: Thu, 1 Nov 2018 00:07:03 +0100
Make the docker images use port 80 (instead of 8000, which is the default in rocket 0.4)
Diffstat:
4 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Dockerfile b/Dockerfile
@@ -64,6 +64,7 @@ RUN cargo build --release
FROM debian:stretch-slim
ENV ROCKET_ENV "staging"
+ENV ROCKET_PORT=80
ENV ROCKET_WORKERS=10
# Install needed libraries
diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64
@@ -83,6 +83,7 @@ RUN cargo build --release --target=aarch64-unknown-linux-gnu -v
FROM resin/aarch64-debian:stretch
ENV ROCKET_ENV "staging"
+ENV ROCKET_PORT=80
ENV ROCKET_WORKERS=10
RUN [ "cross-build-start" ]
diff --git a/Dockerfile.alpine b/Dockerfile.alpine
@@ -56,6 +56,7 @@ RUN cargo build --release
FROM alpine:3.8
ENV ROCKET_ENV "staging"
+ENV ROCKET_PORT=80
ENV ROCKET_WORKERS=10
ENV SSL_CERT_DIR=/etc/ssl/certs
diff --git a/Dockerfile.armv7 b/Dockerfile.armv7
@@ -83,6 +83,7 @@ RUN cargo build --release --target=armv7-unknown-linux-gnueabihf -v
FROM resin/armv7hf-debian:stretch
ENV ROCKET_ENV "staging"
+ENV ROCKET_PORT=80
ENV ROCKET_WORKERS=10
RUN [ "cross-build-start" ]