File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 33ARG PYTHON_VERSION=3.11
44FROM python:${PYTHON_VERSION} AS developer
55
6- # Add any system dependencies for the developer/build environment here
7- RUN apt-get update && apt-get install -y --no-install-recommends \
8- graphviz \
9- && rm -rf /var/lib/apt/lists/*
10-
116# Set up a virtual environment and put it in PATH
127RUN python -m venv /venv
138ENV PATH=/venv/bin:$PATH
@@ -20,7 +15,12 @@ RUN touch dev-requirements.txt && pip install -c dev-requirements.txt .
2015
2116# The runtime stage copies the built venv into a slim runtime container
2217FROM python:${PYTHON_VERSION}-slim AS runtime
18+
2319# Add apt-get system dependecies for runtime here if needed
20+ RUN apt-get update && apt-get install -y --no-install-recommends \
21+ git \
22+ && rm -rf /var/lib/apt/lists/*
23+
2424COPY --from=build /venv/ /venv/
2525ENV PATH=/venv/bin:$PATH
2626
You can’t perform that action at this time.
0 commit comments