18 lines
376 B
Docker
18 lines
376 B
Docker
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"] |