mirror of
https://github.com/Alvin-Zilverstand/novatorem.git
synced 2026-03-06 11:07:09 +01:00
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:
committed by
Andrew Novac
parent
02b606b543
commit
235e94efd4
@@ -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/ .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user