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.
Provide advanced techniques and best practices to significantly reduce Docker image sizes and accelerate build times for a given application type.
Provide actionable strategies and Dockerfile modifications to significantly reduce Docker image size and accelerate build times for a given application.