diff options
author | Quentin Dufour <quentin@dufour.io> | 2021-05-03 19:09:50 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@dufour.io> | 2021-05-03 19:09:50 +0200 |
commit | 3df53eaa9424c1ba4b81da3a6798a56af6f7b04f (patch) | |
tree | b11567dab185c41db582fe17cc66dda661d4c446 /app/plume/build | |
parent | 925639b6784767c2df037a1d5bdbcffe88cd1cda (diff) | |
download | infrastructure-3df53eaa9424c1ba4b81da3a6798a56af6f7b04f.tar.gz infrastructure-3df53eaa9424c1ba4b81da3a6798a56af6f7b04f.zip |
Upgrade plume build scripts
Diffstat (limited to 'app/plume/build')
-rw-r--r-- | app/plume/build/plume/Dockerfile | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/app/plume/build/plume/Dockerfile b/app/plume/build/plume/Dockerfile index 4e05424..4e1401d 100644 --- a/app/plume/build/plume/Dockerfile +++ b/app/plume/build/plume/Dockerfile @@ -24,15 +24,14 @@ 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 +WORKDIR /opt/plume/script +RUN chmod a+x ./wasm-deps.sh && sleep 1 && ./wasm-deps.sh + +WORKDIR /opt/plume +RUN cargo install wasm-pack +RUN chmod a+x ./script/plume-front.sh && sleep 1 && ./script/plume-front.sh +RUN cargo install --path ./ --force --no-default-features --features postgres +RUN cargo install --path plume-cli --force --no-default-features --features postgres RUN cargo clean #----------------------------- @@ -46,7 +45,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ 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/ |