Spaces:
Sleeping
Sleeping
Commit ·
e72b8ab
1
Parent(s): 0573370
nice
Browse files- Dockerfile +6 -4
Dockerfile
CHANGED
|
@@ -1,5 +1,10 @@
|
|
| 1 |
FROM python:3.11
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
RUN useradd -m -u 1000 user
|
| 4 |
USER user
|
| 5 |
ENV PATH="/home/user/.local/bin:$PATH"
|
|
@@ -9,10 +14,7 @@ WORKDIR /app
|
|
| 9 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 10 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 11 |
|
| 12 |
-
|
| 13 |
-
RUN playwright install --with-deps chromium
|
| 14 |
-
|
| 15 |
-
COPY --chown=user . /app
|
| 16 |
|
| 17 |
ENV PORT=7860
|
| 18 |
|
|
|
|
| 1 |
FROM python:3.11
|
| 2 |
|
| 3 |
+
# Install Playwright system dependencies first (as root)
|
| 4 |
+
RUN pip install --no-cache-dir playwright && \
|
| 5 |
+
playwright install --with-deps chromium
|
| 6 |
+
|
| 7 |
+
# Create Hugging Face user
|
| 8 |
RUN useradd -m -u 1000 user
|
| 9 |
USER user
|
| 10 |
ENV PATH="/home/user/.local/bin:$PATH"
|
|
|
|
| 14 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 15 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 16 |
|
| 17 |
+
COPY --chown=user . .
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
ENV PORT=7860
|
| 20 |
|