|
|
|
@ -32,12 +32,6 @@ RUN rustup set profile minimal
|
|
|
|
|
ENV USER "root"
|
|
|
|
|
ENV RUSTFLAGS='-C link-arg=-s'
|
|
|
|
|
|
|
|
|
|
# Install DB packages
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
|
--no-install-recommends \
|
|
|
|
|
libmariadb-dev \
|
|
|
|
|
libpq-dev \
|
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
|
|
# Creates a dummy project used to grab dependencies
|
|
|
|
|
RUN USER=root cargo new --bin /app
|
|
|
|
|