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.
 
 
 
 
 
 

34 lines
808 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. WORKDIR /scratch
  14. COPY script/wasm-deps.sh .
  15. RUN chmod a+x ./wasm-deps.sh && sleep 1 && ./wasm-deps.sh
  16. WORKDIR /app
  17. COPY Cargo.toml Cargo.lock rust-toolchain ./
  18. RUN cargo install diesel_cli --no-default-features --features postgres --version '=1.3.0'
  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. CMD ["plume"]
  26. EXPOSE 7878