Update Dockerfile
Browse files- Dockerfile +6 -9
Dockerfile
CHANGED
|
@@ -2,16 +2,13 @@ FROM python:3.10-slim
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
# Install
|
| 6 |
-
RUN
|
| 7 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 8 |
|
| 9 |
-
|
| 10 |
-
|
| 11 |
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
# Expose port 7860 for Hugging Face health checks
|
| 15 |
EXPOSE 7860
|
| 16 |
|
| 17 |
-
CMD ["python", "
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
# Install dependencies
|
| 6 |
+
RUN pip install --no-cache-dir pyrogram huggingface_hub aiohttp tgcrypto
|
|
|
|
| 7 |
|
| 8 |
+
# Copy the bot
|
| 9 |
+
COPY bot.py .
|
| 10 |
|
| 11 |
+
# Hugging Face Spaces needs port 7860
|
|
|
|
|
|
|
| 12 |
EXPOSE 7860
|
| 13 |
|
| 14 |
+
CMD ["python", "bot.py"]
|