From 235e94efd4d02dd8c1dec635d27b247085dd2138 Mon Sep 17 00:00:00 2001 From: AlexandrosAlexiou Date: Thu, 2 Dec 2021 18:18:27 +0200 Subject: [PATCH] Apply codefactor.io suggestions - Use specific python docker image (less error prone) - Use '--no-cache-dir' flag in pip since pip cache makes docker images larger --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 94128c8..cd8b0d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ # syntax=docker/dockerfile:1 -FROM python:latest +FROM python:3.10.0 WORKDIR /api COPY requirements.txt requirements.txt -RUN pip3 install -r requirements.txt +RUN pip3 install -r requirements.txt --no-cache-dir COPY api/ .