From e844f41abcb4b78db1f4a08ab1378fa843a536d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= Date: Thu, 1 Nov 2018 00:07:03 +0100 Subject: [PATCH] Make the docker images use port 80 (instead of 8000, which is the default in rocket 0.4) --- Dockerfile | 1 + Dockerfile.aarch64 | 1 + Dockerfile.alpine | 1 + Dockerfile.armv7 | 1 + 4 files changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 2a70f17..f795a86 100644 --- 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 index 77bea2d..2eb6822 100644 --- 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 index edcfd59..03cc09d 100644 --- 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 index 2712ae6..e634829 100644 --- 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" ]