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

Containers: save space by deleting apt lists #436

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 4 additions & 2 deletions src/images/core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ RUN cargo build --manifest-path ./qos_core/Cargo.toml --bin qos_core --features
# We don't need the Rust toolchain to run the binary!
FROM debian:bullseye-slim AS runtime
WORKDIR app
RUN apt-get update \
&& apt-get install -y libssl-dev
RUN apt-get update && \
apt-get install -y libssl-dev && \
rm -rf /var/lib/apt/lists/*

COPY --from=builder /target/debug/qos_core /usr/local/bin
ENTRYPOINT ["/usr/local/bin/qos_core", "--port", "6969", "--cid", "16"]
6 changes: 4 additions & 2 deletions src/images/sample-app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ RUN cargo build --bin sample_app --features vm --no-default-features
# We don't need the Rust toolchain to run the binary!
FROM debian:bullseye-slim AS runtime
WORKDIR app
RUN apt-get update \
&& apt-get install -y libssl-dev
RUN apt-get update && \
apt-get install -y libssl-dev && \
rm -rf /var/lib/apt/lists/*

COPY --from=builder /target/debug/sample_app /usr/local/bin
Loading