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 d80fb5b commit 3a5ac1cCopy full SHA for 3a5ac1c
Dockerfile
@@ -7,6 +7,13 @@ ENV TINI_VERSION v0.19.0
7
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static /tini-static
8
RUN sudo chmod +x /tini-static
9
10
+# Copy to Cargo setting and change the owner
11
+COPY --chown=rust:rust Cargo.toml Cargo.lock ./
12
+# Build empty project for better cache
13
+RUN mkdir src && \
14
+ echo "fn main() {}" > src/main.rs && \
15
+ cargo build --release && rm -r src
16
+
17
# Copy to current directory and change the owner
18
COPY --chown=rust:rust . ./
19
# Build
0 commit comments