Manus commited on
Commit ·
e8c9219
1
Parent(s): 4a3a89f
Fix: Update Dockerfile and Procfile to run bot correctly
Browse files- Dockerfile +2 -6
- Procfile +1 -1
Dockerfile
CHANGED
|
@@ -1,12 +1,8 @@
|
|
| 1 |
FROM python:3.9-slim
|
| 2 |
-
|
| 3 |
WORKDIR /app
|
| 4 |
-
|
| 5 |
COPY requirements.txt .
|
| 6 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 7 |
-
|
| 8 |
COPY . .
|
| 9 |
-
|
| 10 |
EXPOSE 7860
|
| 11 |
-
|
| 12 |
-
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "1", "host:app"]
|
|
|
|
| 1 |
FROM python:3.9-slim
|
|
|
|
| 2 |
WORKDIR /app
|
| 3 |
+
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
| 4 |
COPY requirements.txt .
|
| 5 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 6 |
COPY . .
|
|
|
|
| 7 |
EXPOSE 7860
|
| 8 |
+
CMD ["python", "host.py"]
|
|
|
Procfile
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
web:
|
|
|
|
| 1 |
+
web: python host.py
|