Browse Source

Make the docker images use port 80 (instead of 8000, which is the default in rocket 0.4)

pull/284/head
Daniel García 6 years ago
parent
commit
e844f41abc
No known key found for this signature in database GPG Key ID: FC8A7D14C3CD543A
  1. 1
      Dockerfile
  2. 1
      Dockerfile.aarch64
  3. 1
      Dockerfile.alpine
  4. 1
      Dockerfile.armv7

1
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

1
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" ]

1
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

1
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" ]

Loading…
Cancel
Save