Spaces:
Running on Zero
Running on Zero
Update Dockerfile
Browse files- Dockerfile +9 -2
Dockerfile
CHANGED
|
@@ -5,6 +5,7 @@ WORKDIR /app
|
|
| 5 |
# Install only essential dependencies that definitely exist in Debian Trixie
|
| 6 |
RUN apt-get update && apt-get install -y \
|
| 7 |
wget \
|
|
|
|
| 8 |
curl \
|
| 9 |
libnss3 \
|
| 10 |
libatk-bridge2.0-0 \
|
|
@@ -25,12 +26,18 @@ RUN apt-get update && apt-get install -y \
|
|
| 25 |
# Copy requirements and install Python dependencies
|
| 26 |
COPY requirements.txt .
|
| 27 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
# Install Playwright with minimal dependencies
|
| 30 |
RUN playwright install chromium
|
| 31 |
|
| 32 |
# Copy application files
|
| 33 |
-
COPY .
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
# Create necessary directories
|
| 36 |
RUN mkdir -p /tmp
|
|
@@ -43,4 +50,4 @@ HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
|
|
| 43 |
CMD curl -f http://localhost:7860/health || exit 1
|
| 44 |
|
| 45 |
# Start the application
|
| 46 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 5 |
# Install only essential dependencies that definitely exist in Debian Trixie
|
| 6 |
RUN apt-get update && apt-get install -y \
|
| 7 |
wget \
|
| 8 |
+
gnupg \
|
| 9 |
curl \
|
| 10 |
libnss3 \
|
| 11 |
libatk-bridge2.0-0 \
|
|
|
|
| 26 |
# Copy requirements and install Python dependencies
|
| 27 |
COPY requirements.txt .
|
| 28 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 29 |
+
RUN pip install playwright
|
| 30 |
+
RUN playwright install --with-deps chromium
|
| 31 |
+
|
| 32 |
|
| 33 |
# Install Playwright with minimal dependencies
|
| 34 |
RUN playwright install chromium
|
| 35 |
|
| 36 |
# Copy application files
|
| 37 |
+
COPY . /app
|
| 38 |
+
WORKDIR /app
|
| 39 |
+
RUN pip install -r requirements.txt
|
| 40 |
+
|
| 41 |
|
| 42 |
# Create necessary directories
|
| 43 |
RUN mkdir -p /tmp
|
|
|
|
| 50 |
CMD curl -f http://localhost:7860/health || exit 1
|
| 51 |
|
| 52 |
# Start the application
|
| 53 |
+
CMD ["python","app.py","uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|