Skip to content

Commit 5a352e3

Browse files
committed
build main image FROM scratch
1 parent 65db3a8 commit 5a352e3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ RUN mkdir src && echo "fn main() {}" > src/main.rs && cargo build --release && r
3434
COPY src ./src
3535
RUN cargo build --release
3636

37-
# Final stage with a minimal runtime image
38-
FROM alpine:latest
37+
# Final stage as base-image
38+
FROM scratch
3939

40-
WORKDIR /parseable
40+
WORKDIR /
4141

4242
# Copy the static binary into the final image
43-
COPY --from=builder /parseable/target/release/parseable /usr/bin/parseable
43+
COPY --from=builder /parseable/target/release/parseable /parseable
4444

45-
CMD ["/usr/bin/parseable"]
45+
ENTRYPOINT ["/parseable"]

0 commit comments

Comments
 (0)