@@ -9,16 +9,7 @@ COPY Pipfile* /var/lib/pandas/
99RUN pipenv lock --requirements > requirements.txt
1010RUN pipenv lock --requirements --dev > requirements-dev.txt
1111
12- FROM python:${PYTHON_VERSION}-alpine as alpine
13- WORKDIR /var/lib/pandas/
14- COPY --from=lock /var/lib/pandas/ .
15- RUN apk add --no-cache --virtual .build-deps g++ && \
16- ln -s /usr/include/locale.h /usr/include/xlocale.h && \
17- pip install $(grep numpy requirements.txt) && \
18- pip install -r requirements.txt && \
19- apk del .build-deps
20-
21- FROM python:${PYTHON_VERSION}-slim AS slim
12+ FROM python:${PYTHON_VERSION} AS latest
2213WORKDIR /var/lib/pandas/
2314COPY --from=lock /var/lib/pandas/ .
2415RUN pip install $(grep numpy requirements.txt) && \
@@ -30,8 +21,17 @@ COPY --from=lock /var/lib/pandas/ .
3021RUN pip install $(grep numpy requirements.txt) && \
3122 pip install -r requirements.txt -r requirements-dev.txt
3223
33- FROM python:${PYTHON_VERSION} AS latest
24+ FROM python:${PYTHON_VERSION}-slim AS slim
3425WORKDIR /var/lib/pandas/
3526COPY --from=lock /var/lib/pandas/ .
3627RUN pip install $(grep numpy requirements.txt) && \
3728 pip install -r requirements.txt
29+
30+ FROM python:${PYTHON_VERSION}-alpine as alpine
31+ WORKDIR /var/lib/pandas/
32+ COPY --from=lock /var/lib/pandas/ .
33+ RUN apk add --no-cache --virtual .build-deps g++ && \
34+ ln -s /usr/include/locale.h /usr/include/xlocale.h && \
35+ pip install $(grep numpy requirements.txt) && \
36+ pip install -r requirements.txt && \
37+ apk del .build-deps
0 commit comments