Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <[email protected]>
  • Loading branch information
Zoey2936 authored Aug 17, 2024
1 parent 7ea2fe3 commit 6e9cd29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# syntax=docker/dockerfile:labs
FROM python:3.12.5-slim-bookworm AS pip
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
COPY requirements.txt /tmp/requirements.txt
ARG DEBIAN_FRONTEND=noninteractive
RUN echo 'APT::Install-Recommends "0";' | tee -a /etc/apt/apt.conf.d/01norecommend && \
Expand All @@ -11,6 +12,7 @@ RUN echo 'APT::Install-Recommends "0";' | tee -a /etc/apt/apt.conf.d/01norecomme
pip install --no-cache-dir -r /tmp/requirements.txt

FROM python:3.12.5-slim-bookworm
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
COPY --from=pip /usr/local /usr/local
RUN echo 'APT::Install-Recommends "0";' | tee -a /etc/apt/apt.conf.d/01norecommend && \
echo 'APT::Install-Suggests "0";' | tee -a /etc/apt/apt.conf.d/01norecommend && \
Expand Down

0 comments on commit 6e9cd29

Please sign in to comment.