This repository has been archived on 2023-03-15. You can view files and clone it, but cannot push or open issues or pull requests.
infrastructure/app/plume/build/plume/Dockerfile

55 lines
1.2 KiB
Text
Raw Normal View History

2022-01-27 12:31:25 +00:00
FROM rust:1.58.1-slim-bullseye as builder
2020-10-01 13:25:04 +00:00
RUN apt-get update && \
apt-get install -y \
pkg-config \
git \
curl \
postgresql \
postgresql-contrib \
libpq-dev \
gettext \
git \
2022-01-27 12:31:25 +00:00
python \
2020-10-01 13:25:04 +00:00
curl \
gcc \
make \
openssl \
libssl-dev \
libclang-dev
ARG VERSION
WORKDIR /opt
2021-01-07 10:09:29 +00:00
RUN git clone -n https://git.joinplu.me/Plume/Plume.git plume
2020-10-01 13:25:04 +00:00
WORKDIR /opt/plume
RUN git checkout ${VERSION}
2021-05-03 17:09:50 +00:00
WORKDIR /opt/plume/script
2022-01-27 12:31:25 +00:00
RUN chmod a+x ./wasm-deps.sh && ./wasm-deps.sh
2021-05-03 17:09:50 +00:00
WORKDIR /opt/plume
RUN cargo install wasm-pack
2022-01-27 12:31:25 +00:00
RUN chmod a+x ./script/plume-front.sh && ./script/plume-front.sh
2021-05-03 17:09:50 +00:00
RUN cargo install --path ./ --force --no-default-features --features postgres
RUN cargo install --path plume-cli --force --no-default-features --features postgres
2020-10-14 19:27:43 +00:00
RUN cargo clean
2020-10-01 13:25:04 +00:00
2020-10-14 19:27:43 +00:00
#-----------------------------
FROM debian:bullseye-slim
2020-10-01 13:25:04 +00:00
2020-10-14 19:27:43 +00:00
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
libpq5 \
2022-01-27 12:31:25 +00:00
libssl1.1 \
rclone \
fuse
2020-10-14 19:27:43 +00:00
WORKDIR /app
COPY --from=builder /opt/plume /app
COPY --from=builder /usr/local/cargo/bin/plm /usr/local/bin/
COPY --from=builder /usr/local/cargo/bin/plume /usr/local/bin/
2022-01-27 12:31:25 +00:00
CMD ["plume"]