Update dockerfile
Browse files- dockerfile +7 -2
dockerfile
CHANGED
|
@@ -2,10 +2,15 @@ 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 |
-
|
|
|
|
| 9 |
|
|
|
|
| 10 |
EXPOSE 7860
|
| 11 |
-
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
# Copy and install dependencies
|
| 6 |
COPY requirements.txt .
|
| 7 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 8 |
|
| 9 |
+
# Copy app.py into the container
|
| 10 |
+
COPY app.py .
|
| 11 |
|
| 12 |
+
# Expose the port for Hugging Face
|
| 13 |
EXPOSE 7860
|
| 14 |
+
|
| 15 |
+
# Tell Docker to run app.py
|
| 16 |
+
CMD ["python", "app.py"]
|