Fix issue with Rust initial caching project setup.

This commit is contained in:
Dorian 2018-08-08 17:40:19 -04:00
parent f4ce5baf01
commit 0f43e6840a
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ RUN set -eux; \
# Cache the Rust dependencies -> http://whitfin.io/speeding-up-rust-docker-builds/ # Cache the Rust dependencies -> http://whitfin.io/speeding-up-rust-docker-builds/
WORKDIR /app/rookeries/ WORKDIR /app/rookeries/
RUN cargo new --bin rookeries RUN USER=root cargo init --bin rookeries
COPY ["Cargo.toml", "Cargo.lock", "/app/rookeries/"] COPY ["Cargo.toml", "Cargo.lock", "/app/rookeries/"]
RUN cargo build && rm src/*.rs RUN cargo build && rm src/*.rs