Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use alpine as base image #1106

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
build main image FROM scratch
  • Loading branch information
de-sh committed Feb 17, 2025

Unverified

No user is associated with the committer email.
commit 5a352e3afe1844d032dbfdec33ff640ca57c774f
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -34,12 +34,12 @@ RUN mkdir src && echo "fn main() {}" > src/main.rs && cargo build --release && r
COPY src ./src
RUN cargo build --release

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

WORKDIR /parseable
WORKDIR /

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

CMD ["/usr/bin/parseable"]
ENTRYPOINT ["/parseable"]