-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.layer2
More file actions
31 lines (25 loc) · 876 Bytes
/
Dockerfile.layer2
File metadata and controls
31 lines (25 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Layer 2: Python Bench Image
# USER-AGNOSTIC: No user creation — Layer 3 handles user setup
FROM devbench-base:latest
LABEL layer="2"
LABEL layer.name="python-bench"
LABEL layer.version="2.0.0"
LABEL layer.description="Python development tools (user-agnostic)"
LABEL bench.type="python"
# Everything runs as root
USER root
# Install Python 3.12 and tools
RUN apt-get update && apt-get install -y \
python3.12 \
python3.12-venv \
python3.12-dev \
python3-pip \
&& rm -rf /var/lib/apt/lists/*
# Install pipx, poetry, and common Python tools
RUN python3 -m pip install --break-system-packages \
pipx poetry black flake8 mypy pytest ipython jupyter \
django flask fastapi uvicorn pandas numpy
# Add Python path to /etc/skel/.zshrc
RUN echo 'export PATH="$HOME/.local/bin:$PATH"' >> /etc/skel/.zshrc
# Default command
CMD ["sleep", "infinity"]