@@ -14,10 +14,6 @@ FROM base as wheelbuilder
14
14
15
15
WORKDIR ${WHEELS}
16
16
17
- # Install pip requirements files
18
- COPY ./arches/install/requirements.txt ${WHEELS}/requirements.txt
19
- COPY ./arches/install/requirements_dev.txt ${WHEELS}/requirements_dev.txt
20
-
21
17
# Install packages required to build the python libs, then remove them
22
18
RUN set -ex \
23
19
&& BUILD_DEPS=" \
@@ -42,9 +38,7 @@ RUN set -ex \
42
38
&& curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
43
39
&& python3.8 get-pip.py
44
40
45
- RUN pip3 wheel --no-cache-dir -b /tmp -r ${WHEELS}/requirements.txt \
46
- && pip3 wheel --no-cache-dir -b /tmp -r ${WHEELS}/requirements_dev.txt \
47
- && pip3 wheel --no-cache-dir -b /tmp gunicorn \
41
+ RUN pip3 wheel --no-cache-dir -b /tmp gunicorn \
48
42
&& pip3 wheel --no-cache-dir -b /tmp django-auth-ldap
49
43
50
44
# Add Docker-related files
@@ -100,10 +94,6 @@ RUN python3.8 -m venv ENV \
100
94
&& pip install requests \
101
95
&& pip install -f ${WHEELS} django-auth-ldap \
102
96
&& pip install -f ${WHEELS} gunicorn \
103
- && pip install -r ${WHEELS}/requirements.txt \
104
- -f ${WHEELS} \
105
- && pip install -r ${WHEELS}/requirements_dev.txt \
106
- -f ${WHEELS} \
107
97
&& rm -rf ${WHEELS} \
108
98
&& rm -rf /root/.cache/pip/*
109
99
@@ -115,7 +105,7 @@ COPY . ${ARCHES_ROOT}
115
105
WORKDIR ${ARCHES_ROOT}
116
106
117
107
RUN . ../ENV/bin/activate \
118
- && pip install -e . --no-binary :all:
108
+ && pip install -e '.[dev]' --no-binary :all:
119
109
120
110
# Set default workdir
121
111
WORKDIR ${ARCHES_ROOT}
0 commit comments