Update Dockerfile

This commit is contained in:
tebarius
2024-03-05 14:00:32 +01:00
committed by GitHub
parent a30ab23462
commit eae424d582

View File

@@ -1,17 +1,6 @@
FROM python:slim
FROM nginx:stable-alpine-slim
LABEL authors="tebarius"
LABEL version="1.2.1"
LABEL description="QR-Code-Generator-Server with Flask-App"
LABEL description="nginx_with_404_games"
WORKDIR /app
COPY ./app /app/
RUN pip install --upgrade pip
RUN pip install --trusted-host pypi.python.org -r requirements.txt
EXPOSE 8002
ENV HTTP_METHOD POST
CMD ["sh", "-c", "python ${HTTP_METHOD}-Flask-QR.py"]
COPY ./404_games /usr/share/nginx/html
CMD ["nginx", "-g", "daemon off;"]