-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (26 loc) · 977 Bytes
/
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
FROM archlinux as dev
RUN pacman -Syy
RUN pacman --noconfirm -Su
RUN useradd -ms /bin/bash newuser
RUN pacman -Sy --noconfirm neovim git base-devel sudo openssh zsh \
ripgrep fd # needed for nvim telescope
RUN echo 'root:helloroot' | chpasswd
RUN useradd -m dev
RUN echo 'dev:hellodev' | chpasswd
RUN chsh -s /bin/zsh dev
COPY ./sudoers /etc/sudoers
RUN mkdir /pnpm-store && chown dev /pnpm-store
USER dev
WORKDIR /home/dev
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
RUN mkdir -p /home/dev/.config/nvim
# RUN git clone https://aur.archlinux.org/nvim-packer-git.git && cd nvim-packer-git && makepkg -si --noconfirm
FROM dev as vscode-dev
RUN \
git clone https://aur.archlinux.org/code-server.git && \
cd code-server && \
makepkg -si --noconfirm
FROM dev as typescript-dev
RUN sudo pacman -Sy --noconfirm nodejs npm deno
RUN sudo corepack enable
RUN sudo yarn global add typescript typescript-language-server