Spaces:
Sleeping
Sleeping
Commit ·
fe8fc9d
1
Parent(s): 7190baf
fix
Browse files- Dockerfile +2 -6
Dockerfile
CHANGED
|
@@ -1,10 +1,7 @@
|
|
| 1 |
-
|
| 2 |
FROM python:3.12
|
| 3 |
|
| 4 |
-
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
|
| 8 |
RUN apt-get update && apt-get install -y \
|
| 9 |
libnss3 \
|
| 10 |
libnspr4 \
|
|
@@ -21,17 +18,16 @@ RUN apt-get update && apt-get install -y \
|
|
| 21 |
libasound2 \
|
| 22 |
&& rm -rf /var/lib/apt/lists/*
|
| 23 |
|
| 24 |
-
|
| 25 |
RUN pip install --no-cache-dir poetry
|
| 26 |
|
|
|
|
|
|
|
| 27 |
|
| 28 |
COPY pyproject.toml poetry.lock ./
|
| 29 |
COPY . .
|
| 30 |
|
| 31 |
-
|
| 32 |
RUN poetry install --no-root
|
| 33 |
|
| 34 |
-
|
| 35 |
RUN poetry run playwright install chromium
|
| 36 |
RUN poetry run playwright install-deps
|
| 37 |
|
|
|
|
|
|
|
| 1 |
FROM python:3.12
|
| 2 |
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
|
|
|
| 5 |
RUN apt-get update && apt-get install -y \
|
| 6 |
libnss3 \
|
| 7 |
libnspr4 \
|
|
|
|
| 18 |
libasound2 \
|
| 19 |
&& rm -rf /var/lib/apt/lists/*
|
| 20 |
|
|
|
|
| 21 |
RUN pip install --no-cache-dir poetry
|
| 22 |
|
| 23 |
+
# Set Poetry virtualenvs to be inside the project
|
| 24 |
+
ENV POETRY_VIRTUALENVS_IN_PROJECT=true
|
| 25 |
|
| 26 |
COPY pyproject.toml poetry.lock ./
|
| 27 |
COPY . .
|
| 28 |
|
|
|
|
| 29 |
RUN poetry install --no-root
|
| 30 |
|
|
|
|
| 31 |
RUN poetry run playwright install chromium
|
| 32 |
RUN poetry run playwright install-deps
|
| 33 |
|