Skip to content

Lab 2: Docker Containerization#2

Open
almax07082005 wants to merge 2 commits intomasterfrom
lab02
Open

Lab 2: Docker Containerization#2
almax07082005 wants to merge 2 commits intomasterfrom
lab02

Conversation

@almax07082005
Copy link
Owner

Summary

  • Containerized Python Flask application with Docker best practices
  • Implemented non-root user for security
  • Optimized layer caching for faster builds
  • Created comprehensive documentation

Changes

  • Added Dockerfile with python:3.13-slim base image
  • Created .dockerignore to reduce build context
  • Updated README.md with Docker usage instructions
  • Documented implementation details in docs/LAB02.md

Docker Best Practices Applied

  • Non-root user (runs as appuser)
  • Specific base image version (no latest tag)
  • Proper layer ordering for cache optimization
  • Minimal build context with .dockerignore
  • No pip cache to reduce image size

Image Information

  • Base Image: python:3.13-slim
  • Final Size: 221MB
  • Security: Non-root user, minimal attack surface

maksim.al_dandan added 2 commits January 29, 2026 01:07
- Add Dockerfile with non-root user and optimized layer caching
- Create .dockerignore to reduce build context
- Update README with Docker usage instructions
- Document implementation in LAB02.md with technical analysis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant