Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -10
Dockerfile
CHANGED
|
@@ -1,20 +1,12 @@
|
|
| 1 |
-
|
| 2 |
-
FROM registry.hf.space/shashwatidr-vision:latest
|
| 3 |
|
| 4 |
-
# Set working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
# Copy requirements first for caching
|
| 8 |
COPY requirements.txt .
|
| 9 |
-
|
| 10 |
-
# Install dependencies
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
-
# Copy bot code
|
| 14 |
COPY app.py .
|
| 15 |
|
| 16 |
-
# Expose the port for Flask
|
| 17 |
EXPOSE 7860
|
| 18 |
|
| 19 |
-
|
| 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 app.py .
|
| 9 |
|
|
|
|
| 10 |
EXPOSE 7860
|
| 11 |
|
| 12 |
+
CMD ["python", "bot.py"]
|
|
|