-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (23 loc) · 938 Bytes
/
Copy pathDockerfile
File metadata and controls
30 lines (23 loc) · 938 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
FROM archlinux:latest
RUN pacman -Syu --noconfirm && \
pacman -S --noconfirm --needed \
base-devel git nano openssl \
bash bzip2 binutils bash-completion \
curl diffutils grep gzip helm \
jq kubectl lz4 openssh sqlite \
sudo wget xz tar talosctl ncdu \
jdk21-openjdk dotnet-sdk python && \
pacman -Scc --noconfirm
RUN useradd -m -u 1000 -s /bin/bash hayden && \
echo "hayden ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
RUN sudo -u hayden git clone https://aur.archlinux.org/yay-bin.git /tmp/yay-bin && \
cd /tmp/yay-bin && \
sudo -u hayden makepkg -si --noconfirm && \
rm -rf /tmp/yay-bin
RUN sudo -u hayden yay -S --noconfirm tini opencode-bin opencode-claude-auth claude-code-bin opencode-notifier && \
sudo -u hayden yay -Scc --noconfirm
WORKDIR /home/hayden
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/usr/bin/tini", "--"]
CMD ["/entrypoint.sh"]