summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaolo Melchiorre2022-12-05 02:31:32 +0100
committerGitHub2022-12-04 18:31:32 -0700
commit6cf344360afa078d9a0aa95649ce4b92868aa330 (patch)
tree9c4425612db4051230894b51337b67dfbdedbd52
parent4493eefb768dac16500a888d2e8b868b1457655f (diff)
downloadtakahe-6cf344360afa078d9a0aa95649ce4b92868aa330.tar.gz
takahe-6cf344360afa078d9a0aa95649ce4b92868aa330.tar.bz2
takahe-6cf344360afa078d9a0aa95649ce4b92868aa330.zip
Optimized deb packages installed in Docker (#106)
-rw-r--r--docker/Dockerfile18
1 files changed, 15 insertions, 3 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 7ab7988..274cb02 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -3,12 +3,24 @@ ARG IMAGE_LABEL=3.11.0-slim-buster
FROM ${IMAGE_HOST}:${IMAGE_LABEL}
-RUN apt-get update && apt-get -y install libpq-dev libxml2-dev libxslt1-dev zlib1g-dev python3-dev build-essential
+RUN apt-get update \
+ && apt-get install -y --no-install-recommends \
+ libpq5 \
+ && rm -rf /var/lib/apt/lists/*
COPY requirements.txt requirements.txt
-RUN pip3 install --upgrade pip \
- && pip3 install --upgrade -r requirements.txt
+RUN apt-get update \
+ && apt-get install -y --no-install-recommends \
+ gcc \
+ libc6-dev \
+ libpq-dev \
+ && python3 -m pip install --upgrade -r requirements.txt \
+ && apt-get purge -y --auto-remove \
+ gcc \
+ libc6-dev \
+ libpq-dev \
+ && rm -rf /var/lib/apt/lists/*
COPY . /takahe