Skip to content

Commit 31eda43

Browse files
committed
cleanup(docker): fix a little code-bloat
1 parent 6d70618 commit 31eda43

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ARG VENV
1616
# Set WORKDIR (also creates the dir)
1717
WORKDIR $WORKDIR
1818

19-
# Build wheels for uWSGI and all requirements
19+
# Install packages to build wheels for uWSGI and other requirements
2020
RUN set -eux ;\
2121
export DEBIAN_FRONTEND=noninteractive ;\
2222
apt-get update ;\
@@ -40,8 +40,8 @@ ENV PIP_REQUIRE_VIRTUALENV=1
4040
ENV PYTHONPYCACHEPREFIX=/tmp/__pycache__
4141

4242
# Install runtime dependencies
43-
RUN --mount=source=requirements/main.txt,target=requirements/main.txt \
44-
pip install -r requirements/main.txt
43+
RUN --mount=target=/build-ctx \
44+
pip install -r /build-ctx/requirements/main.txt
4545
RUN pip install uwsgi==$UWSGI_VERSION
4646
# Install extra packages into the virtual env
4747
RUN pip install ${EXTRA_PACKAGES}

0 commit comments

Comments
 (0)