Spaces:
Sleeping
Sleeping
Commit ·
5b299ea
1
Parent(s): 2e7b399
fix
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
|
@@ -27,13 +27,13 @@ RUN apt-get update && apt-get install -y \
|
|
| 27 |
libharfbuzz-icu0 \
|
| 28 |
libhyphen0 \
|
| 29 |
libevent-2.1-7 \
|
|
|
|
|
|
|
| 30 |
&& rm -rf /var/lib/apt/lists/*
|
| 31 |
|
| 32 |
# Install Poetry
|
| 33 |
RUN pip install --no-cache-dir poetry
|
| 34 |
-
RUN pip install playwright
|
| 35 |
|
| 36 |
-
RUN playwright install
|
| 37 |
# Set Poetry virtualenvs to be inside the project
|
| 38 |
ENV POETRY_VIRTUALENVS_IN_PROJECT=true
|
| 39 |
|
|
@@ -43,10 +43,10 @@ COPY pyproject.toml poetry.lock ./
|
|
| 43 |
# Install dependencies
|
| 44 |
RUN poetry install --no-root
|
| 45 |
|
| 46 |
-
# Install Playwright and dependencies
|
| 47 |
RUN poetry run pip install playwright
|
| 48 |
RUN poetry run playwright install chromium
|
| 49 |
-
|
| 50 |
|
| 51 |
# Copy the rest of the application
|
| 52 |
COPY . .
|
|
|
|
| 27 |
libharfbuzz-icu0 \
|
| 28 |
libhyphen0 \
|
| 29 |
libevent-2.1-7 \
|
| 30 |
+
libxcursor1 \
|
| 31 |
+
libgtk-3-0 \
|
| 32 |
&& rm -rf /var/lib/apt/lists/*
|
| 33 |
|
| 34 |
# Install Poetry
|
| 35 |
RUN pip install --no-cache-dir poetry
|
|
|
|
| 36 |
|
|
|
|
| 37 |
# Set Poetry virtualenvs to be inside the project
|
| 38 |
ENV POETRY_VIRTUALENVS_IN_PROJECT=true
|
| 39 |
|
|
|
|
| 43 |
# Install dependencies
|
| 44 |
RUN poetry install --no-root
|
| 45 |
|
| 46 |
+
# Install Playwright and dependencies correctly
|
| 47 |
RUN poetry run pip install playwright
|
| 48 |
RUN poetry run playwright install chromium
|
| 49 |
+
RUN poetry run playwright install-deps
|
| 50 |
|
| 51 |
# Copy the rest of the application
|
| 52 |
COPY . .
|