-
-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (14 loc) · 628 Bytes
/
Dockerfile
File metadata and controls
19 lines (14 loc) · 628 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM alpine
RUN apk update && apk add git zsh bash neovim exa ripgrep fzf tzdata ncurses nodejs npm python3 py3-pip curl
RUN addgroup demo \
&& adduser --system --shell /bin/zsh -g demo demo \
&& cp /usr/share/zoneinfo/UTC /etc/localtime
WORKDIR /home/demo
USER demo
ADD --chown=demo ./ .dotfiles/
RUN .dotfiles/install.zsh
# Fix an error with lua-language-server and Alpine Linux
# https://github.com/mason-org/mason.nvim/discussions/1406
RUN nvim --headless -c "MasonInstall --target=linux_arm64_gnu lua-language-server" -c "qa" || true
RUN { echo 'cat .dotfiles/welcome.txt' >>.zshlocal; }
CMD ["zsh", "-l"]