Welcome to your supercharged ⚡ development environment! This Dockerfile creates a code-server container with PlatformIO pre-installed inside a Python virtual environment, ready to roll from the terminal! 🐍💻
🔧 PlatformIO Pre-installed
✅ Self-contained in /opt/pio virtual environment — no system-wide pollution!
🌐 code-server
🖥️ VS Code in the browser, powered by codercom/code-server
🐧 Linux-based Setup
📦 Installs Python 3, pip, venv, and Git
👤 Runs as coder user
🔒 Safer and ready to use without root access
| Component | Version |
|---|---|
| code-server | latest |
| Python | 3.x |
| PlatformIO | latest via pip |
| Virtual Env | /opt/pio |
PlatformIO is activated automatically for every terminal session 🎉
docker build -t code-pio .docker run -it -p 8080:8080 -v $(pwd):/workspace code-pioThen, open your browser and navigate to:
http://localhost:8080
No authentication — just dive right in! 🏊♂️
Open the terminal inside code-server and start using platformio right away!
pio --versionSince it's all inside a virtual environment, you're safe from global package chaos 🌀
The default working directory is:
/workspace
Mount your local project folder there using Docker's -v flag!