change base image to reduce image size

Signed-off-by: Philipp Traber <philipp.traber@uni-konstanz.de>
This commit is contained in:
Philipp Traber
2024-12-05 13:02:11 +01:00
parent 4019969841
commit 9064802962
3 changed files with 8 additions and 8 deletions
+3 -4
View File
@@ -1,7 +1,6 @@
FROM python:3.12
FROM python:3.12-alpine
WORKDIR /app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY requirements.txt .
RUN pip install -r requirements.txt --no-cache-dir
COPY src/ .
CMD [ "fastapi", "run", "api.py" ]