diff --git a/Dockerfile b/Dockerfile index 3909fb91..12315714 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,10 +14,10 @@ WORKDIR /app COPY ./requirements.txt requirements.txt -RUN pip install --upgrade pip +RUN pip install --no-cache-dir --upgrade pip # Install the project dependencies RUN python -m ensurepip --upgrade -RUN pip install -r requirements.txt +RUN pip install --no-cache-dir -r requirements.txt # Copy the rest of the application code COPY . . diff --git a/docker/aws.Dockerfile b/docker/aws.Dockerfile index 13d79b8d..7a529344 100644 --- a/docker/aws.Dockerfile +++ b/docker/aws.Dockerfile @@ -11,7 +11,7 @@ RUN apt-get update && \ COPY ./requirements.txt requirements.txt # Install the project dependencies -RUN pip install -r requirements.txt +RUN pip install --no-cache-dir -r requirements.txt # Install curl and unzip for awscli RUN apt-get -y update; apt-get -y install curl; apt-get -y install unzip