Fix issue with Rust initial caching project setup.
This commit is contained in:
parent
f4ce5baf01
commit
0f43e6840a
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue