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.
Outline a comprehensive strategy for securing Docker images and container runtime environments, including vulnerability scanning, least privilege, and supply chain security.
Provide advanced techniques and best practices to significantly reduce Docker image sizes and accelerate build times for a given application type.