aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2021-06-05 20:48:45 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2021-06-05 20:48:45 +0530
commit46a6bdaab885fca5162b8b9236ec8260de7f197b (patch)
tree5602d402b68fcc715091c8eea0f75057e813ac73
parentb2b0a971788f7168bf488da8c330facee8b5f55e (diff)
added gcc to dockerfile
-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