init project cleaned

This commit is contained in:
2023-01-05 11:21:32 +01:00
commit bc98268740
54 changed files with 3861 additions and 0 deletions

18
Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
FROM rust:latest
LABEL Valentin SORLIN
USER root
ENV ROCKET_ADDRESS=0.0.0.0
ENV ROCKET_PORT=80
WORKDIR /usr/src/myapp
RUN apt update
RUN rustup default nightly
RUN cargo install cargo-watch
RUN cargo install diesel_cli --no-default-features --features postgres
CMD ["cargo", "watch", "-x", "run", "-i", "/usr/src/myapp/tmp", "-i", "/usr/src/myapp/staticbuild", "--why"]