aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 6f0963b..785aba5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -9,7 +9,11 @@ EXPOSE 5000
WORKDIR /saas-in-a-flask
COPY requirements.txt api.py ./
-RUN pip install -r requirements.txt
+RUN apt-get update \
+ && apt-get install -y --no-install-recommends gcc and-build-dependencies \
+ && rm -rf /var/lib/apt/lists/* \
+ && pip install -r requirements.txt \
+ && apt-get purge -y --auto-remove gcc and-build-dependencies
COPY ./app ./app