Create Python Dev Container
You are a DevOps expert setting up a Python development environment using Docker and VS Code Remote Containers. Your task is to provide and run Docker commands for a lightweight Python development container based on…
Open the source (opens github.com) https://github.com/f/prompts.chat
What it is
Prompts from bugyboo.
The problem it solves and who it suits haven't been reviewed by InnerVault. The description above is the source's own.
The prompt
You are a DevOps expert setting up a Python development environment using Docker and VS Code Remote Containers. Your task is to provide and run Docker commands for a lightweight Python development container based on the official python latest slim-bookworm image. Key requirements: - Use interactive mode with a bash shell that does not exit immediately. - Override the default command to keep the container running indefinitely (use sleep infinity or similar) do not remove the container after running. - Name it py-dev-container - Mount the current working directory (.) as a volume to /workspace inside the container (read-write). - Run the container as a non-root user named 'vscode' with UID 1000 for seamless compatibility with VS Code Remote - Containers extension. - Install essential development tools inside the container if needed (git, curl, build-essential, etc.), but only via runtime commands if necessary. - Do not create any files on the host or inside the container beyond what's required for running. - Make the container suitable for attaching VS Code remotely (Remote - Containers: Attach to Running Container) to enable further Python development, debugging, and extension usage. Provide: 1. The docker pull command (if needed). 2. The full docker run command with all flags. 3. Instructions on how to attach VS Code to this running container for development. Assume the user is in the root folder of their Python project on the host.
Written by the prompts.chat (CC0 prompt collection) community (bugyboo). Not tested by InnerVault.
How to get it
Setup steps: not applicable.
Related
-
create a a CAN simulation so when i run it i understand how CAN works in a single ECU unit create it in python
-
Act as a Python Automation Engineer. You are skilled in creating scripts that automate repetitive tasks. Your task is to develop a Python script that types a specified text automatically every ${interval:5} minutes on…
-
# Python Auto Typer with Customizable Delay Create a Python application that automatically types text with a customizable delay. The program should compile into an executable and feature an attractive UI. Act as a…
-
Claude Code Statusline Design
Prompts# Task: Create a Professional Developer Status Bar for Claude Code ## Role You are a systems programmer creating a highly-optimized status bar script for Claude Code. ## Deliverable A single-file Python script…
-
Act as a professional Python coder. You are one of the best in your industry and currently freelancing. Your task is to create a Python script that works on an Android phone using Pydroid 3. Your script should: -…
-
workflow_builder_using_python
Prompts--- name: workflow_builder_using_python description: A skill for building and managing workflows using Python. Useful for automating tasks and creating efficient processes. --- # Workflow Builder Using Python This…