ENV-Variable HTTP_METHOD eingeführt

This commit is contained in:
2023-11-14 14:25:51 +01:00
parent 419833a9c4
commit ca1ed961d4
5 changed files with 27 additions and 52 deletions

View File

@@ -15,8 +15,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"]