Trae Assistant commited on
Commit ·
542b959
1
Parent(s): beb818b
Switch to production server (gunicorn)
Browse files- Dockerfile +2 -2
- requirements.txt +1 -0
Dockerfile
CHANGED
|
@@ -4,8 +4,8 @@ WORKDIR /app
|
|
| 4 |
|
| 5 |
COPY . /app
|
| 6 |
|
| 7 |
-
RUN pip install --no-cache-dir
|
| 8 |
|
| 9 |
EXPOSE 7860
|
| 10 |
|
| 11 |
-
CMD ["
|
|
|
|
| 4 |
|
| 5 |
COPY . /app
|
| 6 |
|
| 7 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 8 |
|
| 9 |
EXPOSE 7860
|
| 10 |
|
| 11 |
+
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
|
requirements.txt
CHANGED
|
@@ -1,2 +1,3 @@
|
|
| 1 |
flask
|
| 2 |
jinja2
|
|
|
|
|
|
| 1 |
flask
|
| 2 |
jinja2
|
| 3 |
+
gunicorn
|