Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +5 -13
Dockerfile
CHANGED
@@ -1,20 +1,12 @@
|
|
1 |
-
|
2 |
-
FROM python:3.11-slim
|
3 |
|
4 |
-
# Set the working directory
|
5 |
WORKDIR /app
|
6 |
|
7 |
-
|
8 |
-
|
9 |
|
10 |
-
|
11 |
-
RUN pip install --no-cache-dir Flask requests sse-starlette httpx
|
12 |
|
13 |
-
# Expose the port (e.g., 7860 for HF Spaces or your desired one)
|
14 |
EXPOSE 7860
|
15 |
|
16 |
-
|
17 |
-
ENV PORT=7860
|
18 |
-
|
19 |
-
# Start the Python app
|
20 |
-
CMD ["python", "app.py"]
|
|
|
1 |
+
FROM python:3.10-slim
|
|
|
2 |
|
|
|
3 |
WORKDIR /app
|
4 |
|
5 |
+
COPY requirements.txt .
|
6 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
7 |
|
8 |
+
COPY bot.py .
|
|
|
9 |
|
|
|
10 |
EXPOSE 7860
|
11 |
|
12 |
+
CMD ["python", "bot.py"]
|
|
|
|
|
|
|
|