Skip to content

Commit a902df5

Browse files
authored
fix(docker): configure pip for system-wide installs
Allow pip to install packages system-wide by modifying pip configuration. Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
1 parent 7c15c17 commit a902df5

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎.docker/sphinx-latex/Dockerfile‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ ENV DEBIAN_FRONTEND=noninteractive
88

99
RUN apt-get update \
1010
&& apt-get install -y --no-install-recommends \
11+
curl \
12+
git \
13+
lsb-release \
1114
make \
1215
python3-pip \
1316
latexmk \
@@ -21,3 +24,7 @@ RUN apt-get update \
2124
xindy \
2225
&& mktexlsr \
2326
&& rm -rf /var/lib/apt/lists/*
27+
28+
# Allow pip to install packages system-wide inside the container (used by
29+
# actions/setup-python and plain pip invocations running as root)
30+
RUN printf '[global]\nbreak-system-packages = true\n' > /etc/pip.conf

0 commit comments

Comments
 (0)