Browse Source

Update muslrust and alpine Image

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

10
Dockerfile.alpine

@ -20,7 +20,7 @@ RUN ls
########################## BUILD IMAGE ##########################
# Musl build image for statically compiled binary
FROM clux/muslrust:nightly-2018-12-01 as build
FROM clux/muslrust:stable as build
# set sqlite as default for DB ARG for backward comaptibility
ARG DB=sqlite
@ -28,9 +28,9 @@ ARG DB=sqlite
ENV USER "root"
# Install needed libraries
RUN apt-get update && apt-get install -y\
libmysqlclient-dev\
--no-install-recommends\
RUN apt-get update && apt-get install -y \
libmysqlclient-dev \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
@ -50,7 +50,7 @@ RUN cargo build --features ${DB} --release
######################## RUNTIME IMAGE ########################
# Create a new stage with a minimal image
# because we already have a binary built
FROM alpine:3.9
FROM alpine
ENV ROCKET_ENV "staging"
ENV ROCKET_PORT=80

Loading…
Cancel
Save