csot/contest

Task 01 — Hello Container

How to evaluate

csot submit ./solutions -w week-02 -t 01

Submit as: 01/Dockerfile Containerize the provided server.py (a tiny HTTP server that returns {"ok":true} on GET / and listens on $PORT, default 8000).

What the grader checks

  • docker build succeeds (3 pts)
  • GET / returns {"ok":true} (6 pts)
  • Uses a slim/small base image — python:*-slim, alpine, or distroless (2 pts)
  • Exec-form CMD/ENTRYPOINT (1 pt)

Hints

  • EXPOSE is documentation only — the grader sets PORT=8000.
  • Exec form: CMD ["python", "server.py"] (not the shell form).

Points: 12

Other tasks