Skip to content

Commit

Permalink
Reduces size of intermediary Docker build layer for production
Browse files Browse the repository at this point in the history
  • Loading branch information
cuducos committed May 9, 2024
1 parent 2dcb22a commit f6467b2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ RUN apt update && \
curl https://sh.rustup.rs -sSf | bash -s -- -y && \
export PATH="$HOME/.cargo/bin:$PATH" && \
pip install maturin>=1.5.1 && \
maturin build -o /wheels/
maturin build -o /wheels/ && \
pip uninstall -y maturin && \
cargo clean && \
rustup self uninstall -y && \
apt purge -y curl build-essential && \
rm -rf /var/lib/apt/lists/*

FROM python:3.12-slim-bookworm
ARG PORT
Expand Down

0 comments on commit f6467b2

Please sign in to comment.