-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.agent
More file actions
26 lines (15 loc) · 1.09 KB
/
Dockerfile.agent
File metadata and controls
26 lines (15 loc) · 1.09 KB
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
# syntax=docker/dockerfile:1
FROM node:22-bookworm-slim AS base
ENV NODE_ENV=production
ENV DEBIAN_FRONTEND=noninteractive
ENV NPM_CONFIG_LOGLEVEL=warn
RUN apt-get update && apt-get install -y --no-install-recommends git curl wget ca-certificates procps build-essential python3 && rm -rf /var/lib/apt/lists/*
RUN mkdir -p -m 755 /etc/apt/keyrings && wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null && chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null && apt-get update && apt-get install -y gh && rm -rf /var/lib/apt/lists/*
FROM base AS release
RUN npm install -g @mariozechner/pi-coding-agent
RUN mkdir -p /home/node/.pi/agent && mkdir -p /workspace && chown -R node:node /home/node/.pi && chown -R node:node /workspace
WORKDIR /workspace
USER node
RUN pi --version
ENTRYPOINT ["pi"]
CMD []