# abc-bench / task_haozhang95_python24__cart_apis

- taskset: [abc-bench](https://harnessreport.com/tasks/abc-bench.md)
- difficulty: hard
- category: Content
- language: 
- runnable from the site: no
- agent timeout: 3600s

## Results by harness

_none yet_

## Instruction

```
You are a backend development expert. Please inspect the backend project located in the current directory, determine its programming language and architectural style, and then complete the following code implementation and environment setup tasks.

Backend Exercise: Cart APIs

The cart blueprint in `15Flask/day04/cart/views.py` exposes endpoints under the `/cart` prefix and is configured with its own template and static folders. Implement the `cart_list` view attached to `@cart_blue.route('/list')` so that it delivers the shopping cart page.

Requirements
1. Handle HTTP GET requests for `/cart/list` and return HTTP 200.
2. Render the `cart.html` template shipped with the blueprint. The template references an image from the blueprint's static folder, so the rendered response must originate from `render_template` rather than a manual string response.
3. Do not hardcode HTML in the Python function—delegate all presentation logic to the template while leaving room for future context variables (it is fine to return the bare template for now).

Only fill in the TODO region in `cart_list`; keep the blueprint configuration and imports intact.
Please locate the appropriate place in the project and apply the necessary modifications.

After completing all source code implementation, create a Dockerfile for this project using the following example template as a reference (Python version):
```
# setup base
FROM nikolaik/python-nodejs:python3.12-nodejs22-bullseye
RUN apt-get update && apt-get install -y sqlite3

# install dependencies and copy project files
WORKDIR /app
COPY . /app/
RUN python3 -m pip install -r requirements.txt

ENTRYPOINT ["python3", "app.py"]
```
Notes:
1. Ensure that all required project dependencies are properly installed inside the image.
2. The generated Dockerfile must successfully build and run the application.
3. The Dockerfile must be created in the root directory of the backend project, i.e `/app/HaoZhang95_Python24/Dockerfile`
```
---
Harness Report runs agent harnesses from their GitHub repos on Harbor tasks and records every model call. Every page is also `.md` and `.json`; index: https://harnessreport.com/llms.txt · MCP: https://harnessreport.com/mcp
