-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
56 lines (51 loc) · 1.4 KB
/
Copy pathDockerfile
File metadata and controls
56 lines (51 loc) · 1.4 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Kept in sync with the embedded DOCKERFILE constant in ./clankbox.
# The launcher builds from its embedded copy so a single installed binary works.
FROM debian:bookworm-slim@sha256:abd67ffcfa541b485a3dff59865ab629aa048a6c613e639d36e7456b0b229241
ENV DEBIAN_FRONTEND=noninteractive \
HOME=/home/clank \
PATH=/usr/local/bin:/usr/bin:/bin:/home/clank/.local/bin \
LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
OPENCODE_DISABLE_AUTOUPDATE=1
RUN apt-get update && apt-get install -y --no-install-recommends \
bash \
bzip2 \
ca-certificates \
curl \
file \
findutils \
g++ \
gawk \
git \
grep \
jq \
less \
make \
nano \
openssh-client \
patch \
procps \
sudo \
python3 \
python3-pip \
python3-venv \
ripgrep \
sed \
tar \
unzip \
wget \
xz-utils \
zip \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
RUN echo 'clank:x:1000:1000:clank:/home/clank:/bin/bash' >> /etc/passwd \
&& echo 'clank:x:1000:' >> /etc/group \
&& echo 'clank:!:19000:0:99999:7:::' >> /etc/shadow \
&& echo 'clank ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/clank \
&& chmod 0440 /etc/sudoers.d/clank \
&& mkdir -p /home/clank/.local/share/opencode \
/home/clank/.config/opencode \
/workspace \
&& chown -R 1000:1000 /home/clank /workspace
WORKDIR /workspace
USER clank
CMD ["sleep", "infinity"]