-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (26 loc) · 1 KB
/
Dockerfile
File metadata and controls
35 lines (26 loc) · 1 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
27
28
29
30
31
32
33
34
35
FROM node:24-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
curl \
jq \
python3 \
python3-venv \
sudo \
ca-certificates \
unzip \
&& rm -rf /var/lib/apt/lists/*
RUN npm install -g pnpm
ENV PNPM_HOME="/home/devuser/.local/share/pnpm"
ENV npm_config_store_dir="/home/devuser/.local/share/pnpm/store"
RUN ARCH="$(uname -m)" && \
curl -LsSf "https://github.com/BurntSushi/ripgrep/releases/download/14.1.1/ripgrep-14.1.1-${ARCH}-unknown-linux-gnu.tar.gz" | tar xz && \
mv "ripgrep-14.1.1-${ARCH}-unknown-linux-gnu/rg" /usr/local/bin/ && \
rm -rf "ripgrep-14.1.1-${ARCH}-unknown-linux-gnu"
RUN useradd -m -s /bin/bash -u 1001 devuser && \
echo "devuser ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
USER devuser
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
RUN curl -fsSL https://bun.sh/install | bash
ENV PATH="/home/devuser/.local/bin:/home/devuser/.bun/bin:/home/devuser/.cargo/bin:${PATH}"
WORKDIR /workspace
CMD ["sleep", "infinity"]