Federated blogging application, thanks to ActivityPub https://joinplu.me
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

47 lines
1.0 KiB

  1. FROM rust:1-buster as builder
  2. RUN apt-get update && apt-get install -y --no-install-recommends \
  3. ca-certificates \
  4. gettext \
  5. postgresql-client \
  6. libpq-dev \
  7. git \
  8. curl \
  9. gcc \
  10. make \
  11. openssl \
  12. libssl-dev \
  13. clang
  14. WORKDIR /scratch
  15. COPY script/wasm-deps.sh .
  16. RUN chmod a+x ./wasm-deps.sh && sleep 1 && ./wasm-deps.sh
  17. WORKDIR /app
  18. COPY Cargo.toml Cargo.lock rust-toolchain ./
  19. RUN cargo install cargo-web
  20. COPY . .
  21. RUN chmod a+x ./script/plume-front.sh && sleep 1 && ./script/plume-front.sh
  22. RUN cargo install --path ./ --force --no-default-features --features postgres
  23. RUN cargo install --path plume-cli --force --no-default-features --features postgres
  24. RUN cargo clean
  25. FROM debian:buster-slim
  26. RUN apt-get update && apt-get install -y --no-install-recommends \
  27. ca-certificates \
  28. libpq5 \
  29. libssl1.1
  30. WORKDIR /app
  31. COPY --from=builder /app /app
  32. COPY --from=builder /usr/local/cargo/bin/plm /bin/
  33. COPY --from=builder /usr/local/cargo/bin/plume /bin/
  34. CMD ["plume"]
  35. EXPOSE 7878