mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2025-08-19 21:03:56 -07:00
Add Uwsgi
This commit is contained in:
parent
0ac097b2a5
commit
a69090f4f2
2 changed files with 7 additions and 0 deletions
4
backend-py/uwsgi.ini
Normal file
4
backend-py/uwsgi.ini
Normal file
|
@ -0,0 +1,4 @@
|
|||
[uwsgi]
|
||||
module = main
|
||||
callable = app
|
||||
enable-threads = true
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue