Spaces:
Running
Running
upload latest dockerfile
Browse files- Dockerfile +1 -5
Dockerfile
CHANGED
|
@@ -9,11 +9,9 @@ ENV PORT 7860
|
|
| 9 |
# Set dynamic port for Hugging Face
|
| 10 |
EXPOSE 7860
|
| 11 |
|
| 12 |
-
# Install system dependencies
|
| 13 |
RUN apt-get update && apt-get install -y \
|
| 14 |
build-essential \
|
| 15 |
-
curl \
|
| 16 |
-
software-properties-common \
|
| 17 |
&& rm -rf /var/lib/apt/lists/*
|
| 18 |
|
| 19 |
# Set the working directory in the container
|
|
@@ -23,12 +21,10 @@ WORKDIR /app
|
|
| 23 |
COPY requirements.txt .
|
| 24 |
|
| 25 |
# Install Python dependencies
|
| 26 |
-
# Note: We use --no-cache-dir to keep the image size down
|
| 27 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 28 |
|
| 29 |
# Copy the rest of the application code
|
| 30 |
COPY . .
|
| 31 |
|
| 32 |
# Run the application
|
| 33 |
-
# Use the PORT environment variable provided by the host
|
| 34 |
CMD ["python", "app.py"]
|
|
|
|
| 9 |
# Set dynamic port for Hugging Face
|
| 10 |
EXPOSE 7860
|
| 11 |
|
| 12 |
+
# Install minimal system dependencies
|
| 13 |
RUN apt-get update && apt-get install -y \
|
| 14 |
build-essential \
|
|
|
|
|
|
|
| 15 |
&& rm -rf /var/lib/apt/lists/*
|
| 16 |
|
| 17 |
# Set the working directory in the container
|
|
|
|
| 21 |
COPY requirements.txt .
|
| 22 |
|
| 23 |
# Install Python dependencies
|
|
|
|
| 24 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 25 |
|
| 26 |
# Copy the rest of the application code
|
| 27 |
COPY . .
|
| 28 |
|
| 29 |
# Run the application
|
|
|
|
| 30 |
CMD ["python", "app.py"]
|