Skip to content

Commit 9a6a1da

Browse files
authored
build: run pip-compile in rootless mode (#251)
1 parent 2c194e8 commit 9a6a1da

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

docs/user-guide/pip-compile/Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,11 @@
44
# Note: impossible to rely on v3.13.14 (missing 'cache_clear' function error)
55
FROM docker.io/python:3.12.11-alpine@sha256:c610e4a94a0e8b888b4b225bfc0e6b59dee607b1e61fb63ff3926083ff617216
66

7-
RUN pip install pip-tools
7+
RUN addgroup -S pip && \
8+
adduser --system --disabled-password --shell /sbin/nologin pip
9+
10+
ENV PATH="${PATH}:/home/pip/.local/bin"
11+
12+
USER pip
13+
14+
RUN pip install --user pip-tools

0 commit comments

Comments
 (0)