diff options
author | Alex Auvolat <alex@adnab.me> | 2021-01-16 17:07:01 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-01-16 17:07:01 +0100 |
commit | c74dc92febd1841c8ea5ff31caab0f941d57527d (patch) | |
tree | d05a203d95cac988952799667ec43c327a5d9038 /app/build/plume/Dockerfile | |
parent | 0c4ee40e01c95d7bf73236cbead5cc261f67eb9d (diff) | |
download | infrastructure-c74dc92febd1841c8ea5ff31caab0f941d57527d.tar.gz infrastructure-c74dc92febd1841c8ea5ff31caab0f941d57527d.zip |
Proposal: reorganize app/ folder by modules
Diffstat (limited to 'app/build/plume/Dockerfile')
-rw-r--r-- | app/build/plume/Dockerfile | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/app/build/plume/Dockerfile b/app/build/plume/Dockerfile deleted file mode 100644 index 4e05424..0000000 --- a/app/build/plume/Dockerfile +++ /dev/null @@ -1,54 +0,0 @@ -FROM rust:1.47.0-slim-buster as builder - -RUN apt-get update && \ - apt-get install -y \ - pkg-config \ - git \ - curl \ - postgresql \ - postgresql-contrib \ - libpq-dev \ - gettext \ - git \ - curl \ - gcc \ - make \ - openssl \ - libssl-dev \ - libclang-dev - -ARG VERSION -WORKDIR /opt -RUN git clone -n https://git.joinplu.me/Plume/Plume.git plume - -WORKDIR /opt/plume -RUN git checkout ${VERSION} - -RUN cargo install diesel_cli --no-default-features --features postgres --version '=1.3.0' - -# frontend -RUN cargo install cargo-web -RUN cargo web deploy -p plume-front --release -# backend -RUN cargo install --no-default-features --features postgres -f --path . -# cli -RUN cargo install --no-default-features --features postgres --path plume-cli -RUN cargo clean - -#----------------------------- -FROM debian:bullseye-slim - -RUN apt-get update && apt-get install -y --no-install-recommends \ - ca-certificates \ - libpq5 \ - libssl1.1 - -WORKDIR /app - -COPY --from=builder /opt/plume /app -COPY --from=builder /usr/local/cargo/bin/diesel /usr/local/bin/ -COPY --from=builder /usr/local/cargo/bin/plm /usr/local/bin/ -COPY --from=builder /usr/local/cargo/bin/plume /usr/local/bin/ -COPY plm-start /usr/local/bin/ - -CMD ["plm-start"] |