mirror of
https://github.com/tebarius/Docker-Flask-QR.git
synced 2025-12-20 22:23:30 +01:00
ENV-Variable HTTP_METHOD eingeführt
This commit is contained in:
@@ -12,8 +12,6 @@ RUN pip install --trusted-host pypi.python.org -r requirements.txt
|
||||
|
||||
EXPOSE 8002
|
||||
|
||||
# with GET-REQUESTS
|
||||
#CMD ["python", "GET-Flask-QR.py"]
|
||||
ENV HTTP_METHOD POST
|
||||
|
||||
# the same with POST-REQUESTS
|
||||
CMD ["python", "Post-Flask-QR.py"]
|
||||
CMD ["sh", "-c", "python ${HTTP_METHOD}-Flask-QR.py"]
|
||||
Reference in New Issue
Block a user