File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -5,16 +5,17 @@ RUN update-ca-certificates
5
5
WORKDIR /its_mypic_image_server
6
6
7
7
COPY . .
8
-
9
- RUN cargo build --release
10
-
8
+ RUN --mount=type=cache,target=/usr/local/cargo/git/db \
9
+ --mount=type=cache,target=/usr/local/cargo/registry/ \
10
+ --mount=type=cache,target=/its_mypic_image_server/target/ \
11
+ cargo build --release; mv target/release/its_mypic_image_server /its_mypic_image_server/its_mypic_image_server
11
12
12
13
FROM gcr.io/distroless/cc
13
14
14
15
WORKDIR /its_mypic_image_server
15
16
16
17
COPY --from=mwader/static-ffmpeg:7.1 /ffmpeg /usr/local/bin/
17
18
18
- COPY --from=builder /its_mypic_image_server/target/release/ its_mypic_image_server .
19
+ COPY --from=builder /its_mypic_image_server/its_mypic_image_server .
19
20
20
21
CMD ["/its_mypic_image_server/its_mypic_image_server" ]
You can’t perform that action at this time.
0 commit comments