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 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;"]
|
||||
|
||||
Reference in New Issue
Block a user