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;"]