Skip to content

Commit 988ee6b

Browse files
authored
Update Dockerfile
buster package is larger but no need to install the build dependencies. Come out of the box. https://medium.com/swlh/alpine-slim-stretch-buster-jessie-bullseye-bookworm-what-are-the-differences-in-docker-62171ed4531d Good work with Poetry.
1 parent 351e13f commit 988ee6b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

docker/Dockerfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
FROM python:3.8-slim-buster
1+
FROM python:3.8-buster
22

33
WORKDIR pypfopt
44
COPY pyproject.toml poetry.lock ./
55

6-
RUN buildDeps='gcc g++' && \
7-
apt-get update && apt-get install -y $buildDeps --no-install-recommends && \
8-
pip install --upgrade pip==21.0.1 && \
6+
RUN pip install --upgrade pip==21.0.1 && \
97
pip install "poetry==1.1.4" && \
108
pip install yfinance && \
11-
poetry install -E optionals --no-root && \
12-
apt-get purge -y --auto-remove $buildDeps
9+
poetry install -E optionals --no-root
1310

1411
COPY . .
1512

0 commit comments

Comments
 (0)