init project cleaned
This commit is contained in:
18
Dockerfile
Normal file
18
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user