| FROM python:3.11-slim |
|
|
|
|
| |
| RUN apt-get update && apt-get install -y \ |
| wget \ |
| gnupg \ |
| curl \ |
| unzip \ |
| xvfb \ |
| libgconf-2-4 \ |
| libxss1 \ |
| libnss3 \ |
| libnspr4 \ |
| libasound2 \ |
| libatk1.0-0 \ |
| libatk-bridge2.0-0 \ |
| libcups2 \ |
| libdbus-1-3 \ |
| libdrm2 \ |
| libgbm1 \ |
| libgtk-3-0 \ |
| libxcomposite1 \ |
| libxdamage1 \ |
| libxfixes3 \ |
| libxrandr2 \ |
| xdg-utils \ |
| fonts-liberation \ |
| dbus \ |
| xauth \ |
| xvfb \ |
| supervisor \ |
| net-tools \ |
| procps \ |
| git \ |
| python3-numpy \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| |
| ENV RUSTUP_HOME=/usr/local/rustup \ |
| CARGO_HOME=/usr/local/cargo \ |
| PATH="/usr/local/cargo/bin:$PATH" |
|
|
| |
| RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y |
|
|
| |
| ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright |
| RUN pip install playwright |
| RUN playwright install --with-deps chromium |
| RUN playwright install-deps |
|
|
| WORKDIR /app |
| COPY requirements.txt . |
| RUN pip install --no-cache-dir -r requirements.txt |
|
|
| |
| COPY . . |
|
|
| EXPOSE 7863 |
| |
| CMD ["python", "interface.py"] |
| |