Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -22
Dockerfile
CHANGED
|
@@ -1,25 +1,9 @@
|
|
| 1 |
# Start from your original base python environment image
|
| 2 |
FROM python:3.9-slim
|
| 3 |
|
| 4 |
-
# Install
|
| 5 |
RUN apt-get update && apt-get install -y \
|
| 6 |
git \
|
| 7 |
-
libglib2.0-0 \
|
| 8 |
-
libnss3 \
|
| 9 |
-
libatk1.0-0 \
|
| 10 |
-
libatk-bridge2.0-0 \
|
| 11 |
-
libcups2 \
|
| 12 |
-
libdrm2 \
|
| 13 |
-
libxkbcommon0 \
|
| 14 |
-
libxcomposite1 \
|
| 15 |
-
libxdamage1 \
|
| 16 |
-
libxext6 \
|
| 17 |
-
libxfixes3 \
|
| 18 |
-
libxrandr2 \
|
| 19 |
-
libgbm1 \
|
| 20 |
-
libpango-1.0-0 \
|
| 21 |
-
libcairo2 \
|
| 22 |
-
libasound2 \
|
| 23 |
&& rm -rf /var/lib/apt/lists/*
|
| 24 |
|
| 25 |
# Set up Hugging Face runtime user security compliance constraints
|
|
@@ -33,12 +17,9 @@ WORKDIR /app
|
|
| 33 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 34 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 35 |
|
| 36 |
-
# Download and bake clean Playwright Chromium automation engines directly into the image path
|
| 37 |
-
RUN pip install --no-cache-dir playwright && playwright install chromium
|
| 38 |
-
|
| 39 |
# Copy remaining implementation assets safely
|
| 40 |
COPY --chown=user . /app
|
| 41 |
RUN mkdir -p /app/static
|
| 42 |
|
| 43 |
-
# Launch
|
| 44 |
-
CMD ["python", "
|
|
|
|
| 1 |
# Start from your original base python environment image
|
| 2 |
FROM python:3.9-slim
|
| 3 |
|
| 4 |
+
# Install basic system tools
|
| 5 |
RUN apt-get update && apt-get install -y \
|
| 6 |
git \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
&& rm -rf /var/lib/apt/lists/*
|
| 8 |
|
| 9 |
# Set up Hugging Face runtime user security compliance constraints
|
|
|
|
| 17 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 18 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 19 |
|
|
|
|
|
|
|
|
|
|
| 20 |
# Copy remaining implementation assets safely
|
| 21 |
COPY --chown=user . /app
|
| 22 |
RUN mkdir -p /app/static
|
| 23 |
|
| 24 |
+
# Launch search_pipeline.py directly
|
| 25 |
+
CMD ["python", "search_pipeline.py"]
|