-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
53 lines (38 loc) · 1.41 KB
/
Dockerfile
File metadata and controls
53 lines (38 loc) · 1.41 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
FROM alpine:latest
LABEL org.opencontainers.image.source=https://github.com/guille/dotfiles
WORKDIR /root
RUN apk add --no-cache \
musl-locales \
zsh zsh-autosuggestions zsh-syntax-highlighting zsh-completions \
git delta neovim bat eza fd fzf htop nnn ripgrep zoxide \
jq yq curl \
mise \
helm kubectl kubectx
# Mise setup
RUN mise settings set experimental true && \
mise use -g usage github:romkatv/gitstatus@1.5.4
RUN echo "export GITSTATUS_CACHE_DIR=$(mise bin-paths github:romkatv/gitstatus)" >> ~/.zshenv.local
# TODO: Get around creating so many layers
COPY ripgrep/ripgreprc .config/ripgrep/ripgreprc
COPY fd/fdignore .config/fd/ignore
COPY bat/custom.tmTheme .config/bat/themes/custom.tmTheme
COPY bat/config .config/bat/config
RUN bat cache --build
COPY zsh/zshrc.zsh .zshrc
COPY zsh/zshenv.zsh .zshenv
COPY zsh/zkeys.zsh .zkeys
COPY zsh/zaliases.zsh .zaliases
COPY zsh/p10k.zsh .p10k.zsh
COPY zsh/p10k.mise.zsh .p10k.mise.zsh
COPY zsh/zsh-history-substring-search.zsh .zhist_substr
COPY zsh/powerlevel10k .powerlevel10k
COPY zsh/fzf-tab .fzf-tab
COPY nvim/ .config/nvim/lua
# Ugh
RUN mv .config/nvim/lua/init.lua .config/nvim/init.lua
RUN echo "export DOTFILES_OS=Linux" >> ~/.zvars && \
echo "export DOTFILES_DISTRO=Alpine" >> ~/.zvars
# not everything recognises ghostty
RUN echo "export TERM=xterm-256color" >> ~/.zshenv.local && \
echo "export EDITOR=nvim" >> ~/.zshenv.local
ENTRYPOINT ["/bin/zsh"]