WIP plume dockerfile
This commit is contained in:
parent
3afe80b158
commit
c5eee91b12
1 changed files with 39 additions and 0 deletions
39
app/build/plume/Dockerfile
Normal file
39
app/build/plume/Dockerfile
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
FROM debian:bullseye-slim as builder
|
||||||
|
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y \
|
||||||
|
rustc \
|
||||||
|
cargo \
|
||||||
|
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.deuxfleurs.fr/Deuxfleurs/plume.git
|
||||||
|
|
||||||
|
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
|
||||||
|
# cli
|
||||||
|
RUN cargo install --no-default-features --features postgres --path plume-cli
|
||||||
|
|
||||||
|
|
Reference in a new issue