Skip to content
This repository was archived by the owner on May 26, 2025. It is now read-only.

Commit 3f42f92

Browse files
authored
Change the Containerfile (#30)
Alpine distribution of python is very slow when using `pip` to install the dependencies. For a `requirements.txt` file that includes `pandas` and `numpy`, it ran for about 25 minutes. According to [this](https://stackoverflow.com/a/60086958) stakoverflow answer, Alpine downloads the source file and compiles them from scratch, which is inefficient. Changing the source image to `-slim` drops the time for that step down to 1.5 minutes.
1 parent ff6e5ff commit 3f42f92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Containerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.7-alpine
1+
FROM python:3.7-slim
22
COPY . /app
33
WORKDIR /app
44
RUN pip install .

0 commit comments

Comments
 (0)