blob: 2e56ae6b54c7381e17e7763397c82268a6825b3b [file] [log] [blame]
FROM rust:1
RUN cargo install diesel_cli --no-default-features --features postgres
RUN cargo install cargo-watch
WORKDIR /opt/app
VOLUME ["/usr/local/cargo"]
#ENV RUST_BACKTRACE=1
CMD ["sh", "-c", "diesel database setup --database-url postgres://postgres:postgres@casbin-actix-pgsql-db:5432/casbin && cargo watch -w src -w Cargo.toml -w .env -d 2 -x run"]