Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -6
Dockerfile
CHANGED
|
@@ -12,15 +12,13 @@ WORKDIR /app
|
|
| 12 |
# Copy requirements and install dependencies
|
| 13 |
COPY requirements.txt .
|
| 14 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 15 |
-
|
|
|
|
|
|
|
| 16 |
|
| 17 |
# Copy application files
|
| 18 |
COPY app.py .
|
| 19 |
COPY templates/index.html templates/
|
| 20 |
-
COPY uploads uploads/
|
| 21 |
-
|
| 22 |
-
# Create uploads directory if it doesn't exist
|
| 23 |
-
RUN mkdir -p uploads
|
| 24 |
|
| 25 |
# Set environment variables
|
| 26 |
ENV PYTHONUNBUFFERED=1
|
|
@@ -30,4 +28,4 @@ ENV PORT=7860
|
|
| 30 |
EXPOSE 7860
|
| 31 |
|
| 32 |
# Command to run the application
|
| 33 |
-
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]
|
|
|
|
| 12 |
# Copy requirements and install dependencies
|
| 13 |
COPY requirements.txt .
|
| 14 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 15 |
+
|
| 16 |
+
# Create uploads directory
|
| 17 |
+
RUN mkdir -p uploads
|
| 18 |
|
| 19 |
# Copy application files
|
| 20 |
COPY app.py .
|
| 21 |
COPY templates/index.html templates/
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
# Set environment variables
|
| 24 |
ENV PYTHONUNBUFFERED=1
|
|
|
|
| 28 |
EXPOSE 7860
|
| 29 |
|
| 30 |
# Command to run the application
|
| 31 |
+
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]
|