Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -1,9 +1,11 @@
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
|
| 3 |
-
# Install system dependencies
|
| 4 |
RUN apt-get update && apt-get install -y \
|
| 5 |
wget \
|
| 6 |
gnupg \
|
|
|
|
|
|
|
| 7 |
libnss3 \
|
| 8 |
libxss1 \
|
| 9 |
libasound2 \
|
|
@@ -21,6 +23,8 @@ WORKDIR $HOME/app
|
|
| 21 |
RUN mkdir -p $HOME/app/static && chown -R user:user $HOME/app/static
|
| 22 |
COPY --chown=user requirements.txt .
|
| 23 |
|
|
|
|
|
|
|
| 24 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 25 |
RUN playwright install chromium
|
| 26 |
RUN playwright install-deps chromium
|
|
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
|
| 3 |
+
# Install system dependencies + Build Tools
|
| 4 |
RUN apt-get update && apt-get install -y \
|
| 5 |
wget \
|
| 6 |
gnupg \
|
| 7 |
+
git \
|
| 8 |
+
build-essential \
|
| 9 |
libnss3 \
|
| 10 |
libxss1 \
|
| 11 |
libasound2 \
|
|
|
|
| 23 |
RUN mkdir -p $HOME/app/static && chown -R user:user $HOME/app/static
|
| 24 |
COPY --chown=user requirements.txt .
|
| 25 |
|
| 26 |
+
# Install Python packages
|
| 27 |
+
RUN pip install --no-cache-dir --upgrade pip setuptools wheel
|
| 28 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 29 |
RUN playwright install chromium
|
| 30 |
RUN playwright install-deps chromium
|