We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ead0db commit d07192aCopy full SHA for d07192a
Dockerfile
@@ -2,7 +2,7 @@ FROM rust:latest AS builder
2
WORKDIR /app
3
4
## Cache build dependencies
5
-COPY Cargo.toml Cargo.lock .
+COPY Cargo.toml Cargo.lock ./
6
# Create a fake main.rs file to build, so Docker can cache the dependencies.
7
RUN mkdir -p ./src && echo 'fn main() {}' > ./src/main.rs
8
RUN cargo fetch
0 commit comments