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.

24 lines
464 B

3 years ago
3 years ago
3 years ago
  1. FROM rustlang/rust:nightly
  2. WORKDIR /usr/src
  3. RUN apt-get update
  4. RUN git clone https://code.basabuuka.org/xsiva/rocket-3d.git
  5. RUN cargo install --path ./rocket-3d
  6. WORKDIR /usr/src/rocket-3d
  7. COPY Rocket.toml /usr/src/rocket-3d/Rocket.toml
  8. COPY .env /usr/src/rocket-3d/.env
  9. RUN cargo install cargo-watch
  10. # RUN cargo install diesel_cli --no-default-features --features "mysql"
  11. # RUN diesel setup
  12. CMD ROCKET_ENV=debug cargo watch -x 'run --bin rocket-3d'