Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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/*

Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Loading