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 712f231 commit 253c0ffCopy full SHA for 253c0ff
Dockerfile
@@ -9,9 +9,18 @@ RUN apt-get update && apt-get install -y protobuf-compiler libclang-dev
9
10
WORKDIR /ebills
11
12
+# start - build dependency cache
13
+RUN mkdir ./src
14
+RUN echo 'fn main() { panic!("Dummy Image Called!")}' > ./src/main.rs
15
+COPY ["Cargo.toml", "Cargo.lock", "./"]
16
+RUN cargo build --release
17
+# end - build dependency cache
18
+
19
COPY ./ .
20
-RUN cargo build --release --features embedded-db
21
+# need to break the cargo cache
22
+RUN touch -a -m ./src/main.rs
23
+RUN cargo build --release --features embedded-db
24
25
##############################
26
## Create image
0 commit comments