From 46a6bdaab885fca5162b8b9236ec8260de7f197b Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Sat, 5 Jun 2021 20:48:45 +0530 Subject: added gcc to dockerfile --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3