Browse Source

Update Debian Image

pull/513/head
JacobiteDE 6 years ago
committed by GitHub
parent
commit
44d6550238
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      Dockerfile

16
Dockerfile

@ -34,8 +34,8 @@ ARG DB=sqlite
# Install MySQL package
RUN apt-get update && apt-get install -y \
libmariadb-dev\
--no-install-recommends\
libmariadb-dev \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
# Creates a dummy project used to grab dependencies
@ -67,18 +67,18 @@ RUN cargo build --features ${DB} --release
######################## RUNTIME IMAGE ########################
# Create a new stage with a minimal image
# because we already have a binary built
FROM debian:stretch-slim
FROM debian:stable-slim
ENV ROCKET_ENV "staging"
ENV ROCKET_PORT=80
ENV ROCKET_WORKERS=10
# Install needed libraries
RUN apt-get update && apt-get install -y\
openssl\
ca-certificates\
libmariadbclient-dev\
--no-install-recommends\
RUN apt-get update && apt-get install -y \
openssl \
ca-certificates \
libmariadbclient-dev \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /data

Loading…
Cancel
Save