diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 54255d6..302750c 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/devcontainers/python:1-3.11-bullseye +FROM mcr.microsoft.com/devcontainers/python:1-3.11-bookworm COPY requirements.txt /tmp/requirements.txt @@ -11,6 +11,8 @@ RUN rm -f /etc/apt/sources.list.d/yarn.list \ xvfb \ && break || { echo "apt-get attempt $i failed, retrying..."; sleep 5; }; \ done \ + && ln -sf /usr/bin/chromium /usr/bin/google-chrome \ + && ln -sf /usr/bin/chromium /usr/bin/chrome \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* diff --git a/README.md b/README.md index 562943b..9b5b6dd 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,8 @@ The setup will automatically: - Install a Jupyter kernel named `Python (AIForTesters)` - Forward app and notebook ports +If you already had a Codespace open before this setup changed, rebuild the container so the browser packages are refreshed. + ## Start The Flask App ```bash @@ -29,7 +31,7 @@ Open the forwarded port `5000` when prompted. Run tests in headless mode (recommended in Codespaces): ```bash -pytest tests --headless +python -m pytest tests/ -v --browser=chrome --headless --no-sandbox --disable-gpu ``` ## Use Jupyter Notebooks