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.
FROM scratch
1 parent 65db3a8 commit 5a352e3Copy full SHA for 5a352e3
Dockerfile
@@ -34,12 +34,12 @@ RUN mkdir src && echo "fn main() {}" > src/main.rs && cargo build --release && r
34
COPY src ./src
35
RUN cargo build --release
36
37
-# Final stage with a minimal runtime image
38
-FROM alpine:latest
+# Final stage as base-image
+FROM scratch
39
40
-WORKDIR /parseable
+WORKDIR /
41
42
# Copy the static binary into the final image
43
-COPY --from=builder /parseable/target/release/parseable /usr/bin/parseable
+COPY --from=builder /parseable/target/release/parseable /parseable
44
45
-CMD ["/usr/bin/parseable"]
+ENTRYPOINT ["/parseable"]
0 commit comments