fix port gunicorn

This commit is contained in:
Łukasz Jędyk 2022-06-09 20:52:10 +02:00
parent a5f4159a49
commit d60f54ed35
2 changed files with 1 additions and 3 deletions

View File

@ -9,4 +9,4 @@ COPY . .
RUN pip3 install -r requirements.txt
EXPOSE 5000/udp
EXPOSE 5000/tcp
CMD ["gunicorn", "-b", "0.0.0.0:5000", "ayct_backend:app", "--timeout", "120"]
CMD ["gunicorn", "-b", "0.0.0.0:$PORT", "ayct_backend:create_app()", "--timeout", "120"]

View File

@ -27,5 +27,3 @@ def create_app():
return "Hello world!"
return app
app = create_app()