Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -7
Dockerfile
CHANGED
|
@@ -5,7 +5,7 @@ FROM python:3.9-slim
|
|
| 5 |
ENV PYTHONDONTWRITEBYTECODE 1
|
| 6 |
ENV PYTHONUNBUFFERED 1
|
| 7 |
|
| 8 |
-
# Install system dependencies
|
| 9 |
RUN apt-get update && apt-get install -y \
|
| 10 |
wget \
|
| 11 |
unzip \
|
|
@@ -14,17 +14,15 @@ RUN apt-get update && apt-get install -y \
|
|
| 14 |
# Set working directory
|
| 15 |
WORKDIR /app
|
| 16 |
|
| 17 |
-
# Copy requirements file
|
| 18 |
COPY requirements.txt .
|
| 19 |
RUN pip install --upgrade pip
|
| 20 |
-
RUN pip install
|
| 21 |
-
# Install Python dependencies
|
| 22 |
-
RUN pip install --use-deprecated=legacy-resolver -r requirements.txt
|
| 23 |
|
| 24 |
# Copy application files
|
| 25 |
-
COPY .
|
| 26 |
|
| 27 |
-
# Expose necessary ports
|
| 28 |
EXPOSE 7860
|
| 29 |
|
| 30 |
# Command to run the application
|
|
|
|
| 5 |
ENV PYTHONDONTWRITEBYTECODE 1
|
| 6 |
ENV PYTHONUNBUFFERED 1
|
| 7 |
|
| 8 |
+
# Install system dependencies
|
| 9 |
RUN apt-get update && apt-get install -y \
|
| 10 |
wget \
|
| 11 |
unzip \
|
|
|
|
| 14 |
# Set working directory
|
| 15 |
WORKDIR /app
|
| 16 |
|
| 17 |
+
# Copy requirements file and install dependencies
|
| 18 |
COPY requirements.txt .
|
| 19 |
RUN pip install --upgrade pip
|
| 20 |
+
RUN pip install -r requirements.txt
|
|
|
|
|
|
|
| 21 |
|
| 22 |
# Copy application files
|
| 23 |
+
COPY . .
|
| 24 |
|
| 25 |
+
# Expose necessary ports (if applicable)
|
| 26 |
EXPOSE 7860
|
| 27 |
|
| 28 |
# Command to run the application
|