19 lines
369 B
Docker
19 lines
369 B
Docker
FROM rust:latest
|
|
|
|
MAINTAINER Valentin SORLIN
|
|
|
|
USER root
|
|
|
|
ENV ROCKET_ADDRESS=0.0.0.0
|
|
ENV ROCKET_PORT=80
|
|
|
|
WORKDIR /usr/src/myapp
|
|
|
|
COPY ./liblaszip.so /lib/liblaszip.so
|
|
|
|
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", "--why"]
|