-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitpod.Dockerfile
37 lines (26 loc) · 1 KB
/
.gitpod.Dockerfile
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
FROM archlinux:base-devel
USER root
RUN pacman-key --init && \
pacman-key --populate archlinux && \
pacman-key --recv-keys 8C23AC40F9AC3CD756ADBB240D3678F5DF8F474D && \
pacman-key --lsign-key 8C23AC40F9AC3CD756ADBB240D3678F5DF8F474D && \
pacman -Syu --noconfirm
RUN echo '[arquivolta]' >> /etc/pacman.conf && echo 'Server = https://x86-64.repo.arquivolta.dev' >> /etc/pacman.conf
RUN pacman --noconfirm -Sy \
docker docker-compose screen htop vim git zsh sudo go \
arquivolta-new-user-template nodejs npm python-poetry fzf ripgrep \
github-cli
RUN echo '%wheel ALL=(ALL:ALL) ALL' > /etc/sudoers.d/00-enable-wheel && \
echo '' >> /etc/sudoers.d/00-enable-wheel && \
chmod 644 /etc/sudoers.d/00-enable-wheel
RUN groupadd -g 33333 gitpod
RUN useradd -m -g gitpod -G wheel -u 33333 -s /bin/zsh 'gitpod'
USER gitpod
ENV USER gitpod
RUN cd /tmp && \
git clone https://aur.archlinux.org/yay.git && cd yay \
&& makepkg
USER root
ENV USER root
RUN cd /tmp/yay && pacman --noconfirm -U $(ls *.zst)
CMD /bin/zsh -l