auf python-slim umgestellt

This commit is contained in:
2023-11-01 16:53:41 +01:00
parent c2504f2519
commit 3734fa2277
10 changed files with 164 additions and 19 deletions

View File

@@ -1,4 +1,4 @@
FROM python:3.9.18-slim
FROM python:slim
LABEL authors="tebarius"
LABEL version="1.0"
@@ -6,9 +6,13 @@ LABEL description="Simple QR-Code-Generator-Server"
WORKDIR /app
COPY ./templates ./Flask-QR.py ./requirements.txt /app/
RUN mkdir templates
COPY ./templates /app/templates/
COPY ./Flask-QR.py ./requirements.txt /app/
RUN pip install --upgrade pip
RUN apt-get update && apt-get install -y zlib1g-dev libjpeg-dev libpng-dev gcc
#RUN python -m pip install --upgrade pip
#RUN python -m pip install --upgrade pillow
RUN pip install --trusted-host pypi.python.org -r requirements.txt
EXPOSE 80