Skip to content

Commit 659fbab

Browse files
committed
Upgrade base images
alpine ~> 3.12 python ~> 3.8
1 parent b8fe16f commit 659fbab

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

Dockerfile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
ARG ALPINE_VERSION=3.11
2-
ARG PYTHON_VERSION=3.7
1+
ARG ALPINE_VERSION=3.12
2+
ARG PYTHON_VERSION=3.8
33

44
FROM python:${PYTHON_VERSION} AS lock
55
WORKDIR /var/lib/pandas/
@@ -9,14 +9,13 @@ COPY Pipfile* /var/lib/pandas/
99
RUN pipenv lock --requirements > requirements.txt
1010
RUN pipenv lock --requirements --dev > requirements-dev.txt
1111

12-
FROM alpine:${ALPINE_VERSION} as alpine
12+
FROM python:${PYTHON_VERSION}-alpine as alpine
1313
WORKDIR /var/lib/pandas/
1414
COPY --from=lock /var/lib/pandas/ .
15-
RUN apk add --no-cache python3-dev libstdc++ && \
16-
apk add --no-cache --virtual .build-deps g++ && \
15+
RUN apk add --no-cache --virtual .build-deps g++ && \
1716
ln -s /usr/include/locale.h /usr/include/xlocale.h && \
18-
pip3 install $(grep numpy requirements.txt) && \
19-
pip3 install -r requirements.txt && \
17+
pip install $(grep numpy requirements.txt) && \
18+
pip install -r requirements.txt && \
2019
apk del .build-deps
2120

2221
FROM python:${PYTHON_VERSION}-slim AS slim

0 commit comments

Comments
 (0)