Skip to content

Docker: Camoufox fails to launch with GUI/non-headless mode #431

Description

@aastha231074

Describe the bug:

What I'm trying to do: Launch Camoufox with a visible browser window inside Docker

Environment:

Docker version: 20.10.12
Camoufox version: 0.4.11
Container base image: python:3.11-slim

FROM python:3.11-slim

ENV DEBIAN_FRONTEND=noninteractive

WORKDIR /app

RUN apt-get update && \
    apt-get install -y --no-install-recommends \
        # VNC
        tigervnc-standalone-server \
        tigervnc-common \
        tigervnc-tools \
    xauth \
        xvfb \
        \
        # Window manager (required)
        openbox \
        \
        # X11 core libs
        x11-common \
        xfonts-base \
        xkb-data \
        libx11-6 \
        libxext6 \
        libxrender1 \
        libxi6 \
        libxtst6 \
        libxfixes3 \
        \
        # Browser deps
        libgtk-3-0 \
        libdbus-glib-1-2 \
        libx11-xcb1 \
        libxcomposite1 \
        libxdamage1 \
        libxrandr2 \
        libatspi2.0-0 \
        libatk1.0-0 \
        libcups2 \
        libxss1 \
        libdrm2 \
        libgbm1 \
        libpangocairo-1.0-0 \
        \
        # Misc required
        fonts-liberation \
        libasound2 \
        ca-certificates \
        wget \
        unzip \
    && rm -rf /var/lib/apt/lists/*

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem rightquestionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions