Task 02 — Context Leak
How to evaluate
csot submit ./solutions -w week-02 -t 02
Submit as: 02/.dockerignore
A previous intern shipped a 900 MB image with secrets baked in: the Dockerfile
does COPY . . and the build context contains .env (cloud keys), a .pem
key, node_modules/, and __pycache__/.
Write a .dockerignore so the image keeps the app but excludes the junk and
secrets. You cannot change the Dockerfile.
What the grader checks
It builds the fixture with your .dockerignore, then inspects the image:
app.pyandrequirements.txtare still present (3 pts).envis gone (3 pts)node_modules/,__pycache__/, and*.pemare gone (4 pts)