From 1533b0a1420aec5d42b915bf498b51d7308e9d46 Mon Sep 17 00:00:00 2001 From: Andrea Nicastro Date: Wed, 22 Dec 2021 16:20:10 +1100 Subject: [PATCH] fix gcc dependency The container has a dependency on gcc. Hence, the docker image build will fail with below error: unable to execute 'gcc': No such file or directory error: command 'gcc' failed with exit status 1 The fix consists in adding gcc to the container through the dockerfile. --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index baf5ea3..351862d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,8 @@ FROM python:3.7.8-slim EXPOSE 8080 RUN pip install -U pip +RUN apt-get update +RUN apt-get -y install gcc COPY requirements.txt app/requirements.txt RUN pip install -r app/requirements.txt