Description
Containerize the linux-sysmonitor health-check script so it can run identically on any machine with Docker installed, without requiring Bash or other dependencies on the host.
Tasks
Acceptance Criteria
- Docker image builds successfully without errors.
- Container starts successfully using the configured
ENTRYPOINT.
- Output matches the native execution of
health-check.sh.
- No host-side Bash or additional dependencies are required.
- Dockerfile follows Docker best practices and is easy to understand.
Commit Message
feat: add basic Dockerfile for health-check script (closes #13)
Why This Matters
This is the foundation of Docker-based application packaging. Completing this ticket will help you understand:
- Selecting an appropriate base image.
- Installing dependencies inside a container.
- Docker image layers and build caching.
COPY and WORKDIR.
- The difference between
ENTRYPOINT and CMD.
- Building portable, reproducible environments.
Interview Tip: Be prepared to explain why you chose each Dockerfile instruction—not just what it does. Questions about base image selection, layer caching, and ENTRYPOINT vs CMD are very common in Docker interviews.
Description
Containerize the
linux-sysmonitorhealth-check script so it can run identically on any machine with Docker installed, without requiring Bash or other dependencies on the host.Tasks
Dockerfilein the project root.alpine:3.19recommended for its small size) and document the reason in the README or commit.bash,curl, etc.)./appinside the image.WORKDIR /app.chmod +x health-check.sh).docker build -t linux-sysmonitor:v1 .Acceptance Criteria
ENTRYPOINT.health-check.sh.Commit Message
Why This Matters
This is the foundation of Docker-based application packaging. Completing this ticket will help you understand:
COPYandWORKDIR.ENTRYPOINTandCMD.