summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
Diffstat (limited to 'docker')
-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