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
This commit is contained in:
AlexandrosAlexiou
2021-12-02 18:18:27 +02:00
committed by Andrew Novac
parent 02b606b543
commit 235e94efd4

View File

@@ -1,11 +1,11 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
FROM python:latest FROM python:3.10.0
WORKDIR /api WORKDIR /api
COPY requirements.txt requirements.txt COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt RUN pip3 install -r requirements.txt --no-cache-dir
COPY api/ . COPY api/ .