Skip to content

Commit 1d22b8e

Browse files
committed
add git to container image
1 parent 67c7acd commit 1d22b8e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
ARG PYTHON_VERSION=3.11
44
FROM 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
127
RUN python -m venv /venv
138
ENV 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
2217
FROM 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+
2424
COPY --from=build /venv/ /venv/
2525
ENV PATH=/venv/bin:$PATH
2626

0 commit comments

Comments
 (0)