Browser logs: Chromium sandboxing failed! ================================ To avoid the sandboxing issue, do either of the following: - (preferred): Configure your environment to support sandboxing - (alternative): Launch Chromium without sandbox using 'chromiumSandbox: false' option ================================
crawlee[playwright]
to 0.5.2
FROM mcr.microsoft.com/playwright/python:v1.49.1-noble ENV APP_HOME=/app ENV TESTS_PATH=/app/tests ENV PYTHONPATH=${PYTHONPATH}:${APP_HOME}:${TESTS_PATH} ENV CRAWLEE_STORAGE_DIR=${APP_HOME}/storage WORKDIR ${APP_HOME} RUN groupadd -r appuser && useradd -r -g appuser -m -d /home/appuser appuser \ && mkdir -p /home/appuser/.cache \ && chown -R appuser:appuser /home/appuser/.cache RUN pip install --upgrade pip COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . ${APP_HOME} RUN mkdir -p ${APP_HOME}/storage RUN chown -R appuser:appuser ${APP_HOME} USER appuser ENTRYPOINT ["python", "main.py"]
FROM mcr.microsoft.com/playwright/python:v1.49.1-noble
adduser
? And what about the seccomp profile?FROM python:3.11.2 ENV APP_HOME=/app ENV TESTS_PATH=/app/tests ENV PYTHONPATH=${PYTHONPATH}:${APP_HOME}:${TESTS_PATH} ENV CRAWLEE_STORAGE_DIR=${APP_HOME}/storage WORKDIR ${APP_HOME} RUN pip install --upgrade pip COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt RUN pip install playwright && playwright install --with-deps COPY . ${APP_HOME} RUN mkdir -p ${APP_HOME}/storage ENTRYPOINT ["python"]
docker run --rm -t $docker_args \ -v /mnt/storage:/app/storage \ -e MONGO_HOST=${MONGO_HOST} \ -e AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} \ -e AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} \ -e SPAWN=${SPAWN} \ -e MONGO_CACHE=${MONGO_CACHE} \ ${IMAGE_NAME} $prog_args
FROM mcr.microsoft.com/playwright/python:v1.49.1-noble ENV APP_HOME=/app ENV TESTS_PATH=/app/tests ENV PYTHONPATH=${PYTHONPATH}:${APP_HOME}:${TESTS_PATH} ENV CRAWLEE_STORAGE_DIR=${APP_HOME}/storage WORKDIR ${APP_HOME} RUN groupadd -r appuser && useradd -r -g appuser -m -d /home/appuser appuser \ && mkdir -p /home/appuser/.cache \ && chown -R appuser:appuser /home/appuser/.cache RUN pip install --upgrade pip COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . ${APP_HOME} RUN mkdir -p ${APP_HOME}/storage RUN chown -R appuser:appuser ${APP_HOME} USER appuser ENTRYPOINT ["python", "main.py"]