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.
 
 
 
 
 
 

35 lines
819 B

  1. FROM rust:1-buster
  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 diesel_cli --no-default-features --features postgres --version '=1.3.0'
  20. RUN cargo install wasm-pack
  21. COPY . .
  22. RUN chmod a+x ./script/plume-front.sh && sleep 1 && ./script/plume-front.sh
  23. RUN cargo install --path ./ --force --no-default-features --features postgres
  24. RUN cargo install --path plume-cli --force --no-default-features --features postgres
  25. RUN cargo clean
  26. CMD ["plume"]
  27. EXPOSE 7878