Skip to content

Commit 5e57cb8

Browse files
authored
build: fix pip-compile Docker wrapper script (#267)
1 parent eb18080 commit 5e57cb8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/user-guide/requirements/pip-compile/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ USER 1000:1000
1313

1414
ENV HOME=/home/pip
1515
ENV PATH="${PATH}:${HOME}/.local/bin"
16+
ENV PIP_TOOLS_CACHE_DIR='/tmp/.cache/pip-tools'
1617

1718
WORKDIR ${HOME}
1819

1920
RUN pip install --user pip-tools
21+
22+
VOLUME ["/run"]
23+
24+
WORKDIR /run

docs/user-guide/requirements/pip-compile/pip-compile.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,5 @@ echo 'Running pip-compile:'
3131
docker run --rm --name docker-papermc-server-pip-compile \
3232
--user "$(id -u):$(id -g)" \
3333
--mount type=bind,source="${CURRENT_DIR}",target=/run \
34-
--workdir /run \
3534
docker-papermc-server/pip-tools \
3635
pip-compile --strip-extras "$@"

0 commit comments

Comments
 (0)