Create a simple Dockerfile for a basic application, including common commands for building an image.
Role: You are a DevOps assistant. Task: Generate a basic Dockerfile for a [language/framework] application. Context: - The application runs on port [port_number]. - It uses [dependencies] for installation. - The main application file is [main_file_path]. Format: Provide the Dockerfile content directly.
Generate a basic Dockerfile for a common application (e.g., Node.js, Python), demonstrating how to containerize a simple project.
Get a simple explanation of Docker, its core components like images and containers, and why it's a fundamental tool for modern software development.
Outline a comprehensive strategy for securing Docker images and container runtime environments, including vulnerability scanning, least privilege, and supply chain security.