Spaces:
Build error
Build error
Krish Shah-Nathwani
commited on
Commit
·
6a1edf3
1
Parent(s):
32770b3
Dockerfile exposing appropriate ports
Browse files- Dockerfile +11 -1
Dockerfile
CHANGED
|
@@ -1,7 +1,17 @@
|
|
| 1 |
FROM python:3.10-slim
|
|
|
|
|
|
|
| 2 |
WORKDIR /app
|
|
|
|
|
|
|
| 3 |
COPY requirements.txt .
|
| 4 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
| 5 |
COPY . .
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
CMD ["python", "app.py"]
|
|
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
+
|
| 3 |
+
# Set working directory
|
| 4 |
WORKDIR /app
|
| 5 |
+
|
| 6 |
+
# Copy dependency list and install python packages
|
| 7 |
COPY requirements.txt .
|
| 8 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 9 |
+
|
| 10 |
+
# Copy files into the container
|
| 11 |
COPY . .
|
| 12 |
+
|
| 13 |
+
# Expose container-side ports:
|
| 14 |
+
EXPOSE 7860 8000 9100
|
| 15 |
+
|
| 16 |
+
# Launch app
|
| 17 |
CMD ["python", "app.py"]
|