From eae424d5829e7bc25fa29407932d2892ea8fe921 Mon Sep 17 00:00:00 2001 From: tebarius <67242661+tebarius@users.noreply.github.com> Date: Tue, 5 Mar 2024 14:00:32 +0100 Subject: [PATCH] Update Dockerfile --- Dockerfile | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/Dockerfile b/Dockerfile index 008ebd9..d93dc5e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file +COPY ./404_games /usr/share/nginx/html +CMD ["nginx", "-g", "daemon off;"]