Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -12,8 +12,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 12 |
COPY requirements.txt .
|
| 13 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 14 |
|
| 15 |
-
# Copy application code and model
|
| 16 |
-
COPY app
|
| 17 |
|
| 18 |
# Create uploads directory
|
| 19 |
RUN mkdir -p uploads
|
|
@@ -22,4 +22,4 @@ RUN mkdir -p uploads
|
|
| 22 |
EXPOSE 8000
|
| 23 |
|
| 24 |
# Command to run the application
|
| 25 |
-
CMD ["python", "
|
|
|
|
| 12 |
COPY requirements.txt .
|
| 13 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 14 |
|
| 15 |
+
# Copy application code and model directly (not from app/ directory)
|
| 16 |
+
COPY main.py app.py image.jpg levit.pkl* ./
|
| 17 |
|
| 18 |
# Create uploads directory
|
| 19 |
RUN mkdir -p uploads
|
|
|
|
| 22 |
EXPOSE 8000
|
| 23 |
|
| 24 |
# Command to run the application
|
| 25 |
+
CMD ["python", "app.py"]
|