Skip to content

Commit 55bb3ce

Browse files
committed
chore: move elf to workdir to copy
1 parent 965c40a commit 55bb3ce

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@ COPY . .
88
RUN --mount=type=cache,target=/usr/local/cargo/git/db \
99
--mount=type=cache,target=/usr/local/cargo/registry/ \
1010
--mount=type=cache,target=/its_mypic_image_server/target/ \
11-
cargo build --release
12-
11+
cargo build --release; mv target/release/its_mypic_image_server /its_mypic_image_server/its_mypic_image_server
1312

1413
FROM gcr.io/distroless/cc
1514

1615
WORKDIR /its_mypic_image_server
1716

1817
COPY --from=mwader/static-ffmpeg:7.1 /ffmpeg /usr/local/bin/
1918

20-
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 .
2120

2221
CMD ["/its_mypic_image_server/its_mypic_image_server"]

0 commit comments

Comments
 (0)