2018-09-03 21:45:17 +02:00
|
|
|
FROM rust:1-stretch
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
gettext \
|
|
|
|
postgresql-client \
|
|
|
|
libpq-dev \
|
|
|
|
git \
|
|
|
|
curl \
|
|
|
|
gcc \
|
|
|
|
make \
|
|
|
|
openssl \
|
|
|
|
libssl-dev
|
|
|
|
WORKDIR /app
|
|
|
|
COPY Cargo.toml Cargo.lock ./
|
2018-10-07 20:12:10 +02:00
|
|
|
RUN cargo install diesel_cli --no-default-features --features postgres --version '=1.3.0'
|
2018-09-03 21:45:17 +02:00
|
|
|
COPY . .
|
2018-12-22 18:27:21 +01:00
|
|
|
RUN cargo install --path ./ --force --no-default-features --features postgres
|
2018-10-07 20:12:10 +02:00
|
|
|
RUN cargo install --path plume-cli --force --no-default-features --features postgres
|
2018-12-22 18:27:21 +01:00
|
|
|
RUN rm -rf target/release/incremental
|
2018-10-06 12:59:39 +02:00
|
|
|
CMD ["plume"]
|
2018-09-03 21:45:17 +02:00
|
|
|
EXPOSE 7878
|