forked from jmug/stoatchat
Cache Cargo dependencies for Docker build.
This commit is contained in:
@@ -6,6 +6,9 @@ WORKDIR /home/rust/src
|
||||
RUN USER=root cargo new --bin revolt
|
||||
WORKDIR /home/rust/src/revolt
|
||||
COPY Cargo.toml Cargo.lock ./
|
||||
COPY src/bin/dummy.rs ./src/bin/dummy.rs
|
||||
RUN cargo build --release --bin dummy
|
||||
|
||||
COPY assets/templates ./assets/templates
|
||||
COPY src ./src
|
||||
RUN cargo build --release
|
||||
|
||||
Reference in New Issue
Block a user