Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -16,11 +16,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 16 |
RUN --mount=type=secret,id=GITHUB_REPO,required=true \
|
| 17 |
git clone $(cat /run/secrets/GITHUB_REPO) .
|
| 18 |
|
| 19 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 20 |
|
| 21 |
ENV FLASK_ENV=production
|
| 22 |
ENV PORT=7860
|
| 23 |
|
| 24 |
EXPOSE 7860
|
| 25 |
|
| 26 |
-
CMD ["
|
|
|
|
| 16 |
RUN --mount=type=secret,id=GITHUB_REPO,required=true \
|
| 17 |
git clone $(cat /run/secrets/GITHUB_REPO) .
|
| 18 |
|
| 19 |
+
RUN pip install --no-cache-dir -r requirements.txt \
|
| 20 |
+
gunicorn
|
| 21 |
|
| 22 |
ENV FLASK_ENV=production
|
| 23 |
ENV PORT=7860
|
| 24 |
|
| 25 |
EXPOSE 7860
|
| 26 |
|
| 27 |
+
CMD ["gunicorn", "-w", "2", "--threads", "4", "-b", "0.0.0.0:7860", "app:app"]
|