Skip to content

Commit a1dd32b

Browse files
committed
fix to installing numpy
1 parent fe76e73 commit a1dd32b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,26 @@ RUN pipenv lock --requirements --dev > requirements-dev.txt
1212
FROM python:${PYTHON_VERSION} AS latest
1313
WORKDIR /var/lib/pandas/
1414
COPY --from=lock /var/lib/pandas/ .
15-
RUN pip install $(grep numpy requirements.txt) && \
15+
RUN pip install $(grep -Eoh 'numpy==[0-9.]+' requirements.txt) && \
1616
pip install -r requirements.txt
1717

1818
FROM python:${PYTHON_VERSION} AS jupyter
1919
WORKDIR /var/lib/pandas/
2020
COPY --from=lock /var/lib/pandas/ .
21-
RUN pip install $(grep numpy requirements.txt) && \
21+
RUN pip install $(grep -Eoh 'numpy==[0-9.]+' requirements.txt) && \
2222
pip install -r requirements.txt -r requirements-dev.txt
2323

2424
FROM python:${PYTHON_VERSION}-slim AS slim
2525
WORKDIR /var/lib/pandas/
2626
COPY --from=lock /var/lib/pandas/ .
27-
RUN pip install $(grep numpy requirements.txt) && \
27+
RUN pip install $(grep -Eoh 'numpy==[0-9.]+' requirements.txt) && \
2828
pip install -r requirements.txt
2929

3030
FROM python:${PYTHON_VERSION}-alpine as alpine
3131
WORKDIR /var/lib/pandas/
3232
COPY --from=lock /var/lib/pandas/ .
3333
RUN apk add --no-cache --virtual .build-deps g++ && \
3434
ln -s /usr/include/locale.h /usr/include/xlocale.h && \
35-
pip install $(grep numpy requirements.txt) && \
35+
pip install $(grep -Eoh 'numpy==[0-9.]+' requirements.txt) && \
3636
pip install -r requirements.txt && \
3737
apk del .build-deps

0 commit comments

Comments
 (0)