Update Dockerfile
This commit is contained in:
19
Dockerfile
19
Dockerfile
@@ -1,17 +1,6 @@
|
|||||||
FROM python:slim
|
FROM nginx:stable-alpine-slim
|
||||||
|
|
||||||
LABEL authors="tebarius"
|
LABEL authors="tebarius"
|
||||||
LABEL version="1.2.1"
|
LABEL description="nginx_with_404_games"
|
||||||
LABEL description="QR-Code-Generator-Server with Flask-App"
|
|
||||||
|
|
||||||
WORKDIR /app
|
COPY ./404_games /usr/share/nginx/html
|
||||||
COPY ./app /app/
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
|
|
||||||
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"]
|
|
||||||
|
|||||||
Reference in New Issue
Block a user