StaffCoder
Docker
DockerLinux CLI
5 modules · 20 challengesSign up
Module 2 of 5 · 4 challenges

Docker Dockerfile Fundamentals

Build clean application images with Dockerfiles and proper configuration.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Application Packaged

Sign up to unlock
—No data yeteasy
About this challenge

Write a Dockerfile that builds a Python application on a pinned base image - working directory, vendored dependency install, source copy and default command - then build it under a given tag and run it.

Solved in a browser IDE and graded by tests. Sign up to solve

Entrypoint Versus Command

Sign up to unlock
—No data yeteasy
About this challenge

Configure ENTRYPOINT and CMD in exec form so an image runs as an executable with overridable default arguments, and compare it with a shell form variant that leaves a shell at process 1.

Solved in a browser IDE and graded by tests. Sign up to solve

Build Context Trimmed

Sign up to unlock
—No data yeteasy
About this challenge

Define the build context deliberately with a .dockerignore, separate build-time arguments from run-time environment, and prove that ignored files never reach any layer of the image.

Solved in a browser IDE and graded by tests. Sign up to solve

Reproducible Image From Source

STAR
Solving it completes the module
—No data yeteasy
About this challenge

Package an inherited service into an image anyone can rebuild identically: a pinned base, a trimmed context that leaks no secret into a layer, build-time and run-time configuration kept apart, and an exec-form entrypoint with defaults that stops cleanly.

Solved in a browser IDE and graded by tests. Sign up to solve

We use cookies that are necessary to run Staffcoder, and optional analytics cookies to see which pages get used. Analytics stays off unless you accept. Read our Cookie Policy.