2018-09-03 19:45:17 +00: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 18:12:10 +00:00
|
|
|
RUN cargo install diesel_cli --no-default-features --features postgres --version '=1.3.0'
|
2018-09-03 19:45:17 +00:00
|
|
|
COPY . .
|
2018-12-22 17:27:21 +00:00
|
|
|
RUN cargo install --path ./ --force --no-default-features --features postgres
|
2018-10-07 18:12:10 +00:00
|
|
|
RUN cargo install --path plume-cli --force --no-default-features --features postgres
|
2018-12-22 17:27:21 +00:00
|
|
|
RUN rm -rf target/release/incremental
|
2018-10-06 10:59:39 +00:00
|
|
|
CMD ["plume"]
|
2018-09-03 19:45:17 +00:00
|
|
|
EXPOSE 7878
|