Add Uwsgi

This commit is contained in:
ArevomEisvolk 2022-05-09 10:17:26 +02:00
commit a69090f4f2
2 changed files with 7 additions and 0 deletions

4
backend-py/uwsgi.ini Normal file
View file

@ -0,0 +1,4 @@
[uwsgi]
module = main
callable = app
enable-threads = true

View file

@ -38,6 +38,9 @@ COPY ./backend-py/requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
COPY ./backend-py /app
ENV UWSGI_INI /app/uwsgi.ini
COPY --from=build-stage /app/frontend/build /app/app/
ENV FLASK_APP=main.py
EXPOSE 80