-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (23 loc) · 709 Bytes
/
Dockerfile
File metadata and controls
30 lines (23 loc) · 709 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
# Dockerfile for pi coding agent
FROM node:20-slim
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
curl \
build-essential \
python3 \
&& rm -rf /var/lib/apt/lists/*
# Install mise (polyglot tool version manager)
RUN curl https://mise.run | MISE_INSTALL_PATH=/usr/local/bin/mise sh
# Install pi coding agent globally
RUN npm install -g @mariozechner/pi-coding-agent
# Create a non-root user
RUN useradd -m -s /bin/bash piuser && \
mkdir -p /home/piuser/.pi && \
chown -R piuser:piuser /home/piuser
# Switch to non-root user
USER piuser
# Set up the project mount point
WORKDIR /project
# Default command - run pi in interactive mode
CMD ["pi"]