Spaces:
Paused
Paused
Commit
·
b997176
1
Parent(s):
6a22b36
Updated Docker
Browse files- Dockerfile +1 -1
- wsgx.py +5 -0
Dockerfile
CHANGED
@@ -12,4 +12,4 @@ COPY --chown=user ./requirements.txt requirements.txt
|
|
12 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
13 |
|
14 |
COPY --chown=user . /app
|
15 |
-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
12 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
13 |
|
14 |
COPY --chown=user . /app
|
15 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860","wsgi:obj_app"]
|
wsgx.py
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# wsgi.py
|
2 |
+
from main import *
|
3 |
+
|
4 |
+
# Create the Flask app
|
5 |
+
obj_app = get_all_posts()
|