build: base preview dockerfile on Fedora
This commit is contained in:
parent
9922b87da3
commit
44bbc91d95
1 changed files with 24 additions and 20 deletions
44
Dockerfile
44
Dockerfile
|
@ -1,23 +1,29 @@
|
||||||
FROM archlinux:base-devel
|
FROM fedora:latest
|
||||||
|
|
||||||
RUN pacman -Sy \
|
RUN dnf install -y \
|
||||||
base-devel \
|
ccache \
|
||||||
chezmoi \
|
fd-find \
|
||||||
fd \
|
gcc-c++ \
|
||||||
git \
|
git \
|
||||||
go \
|
golang \
|
||||||
|
libstdc++-static \
|
||||||
|
lsd \
|
||||||
neovim \
|
neovim \
|
||||||
nodejs \
|
nodejs \
|
||||||
npm \
|
npm \
|
||||||
python \
|
python \
|
||||||
|
ranger \
|
||||||
ripgrep \
|
ripgrep \
|
||||||
starship \
|
tree-sitter-cli \
|
||||||
tree-sitter \
|
|
||||||
ttf-nerd-fonts-symbols-common \
|
|
||||||
unzip \
|
unzip \
|
||||||
zip \
|
zip \
|
||||||
|
zoxide \
|
||||||
zsh \
|
zsh \
|
||||||
--noconfirm
|
&& dnf clean all
|
||||||
|
|
||||||
|
# install starship
|
||||||
|
RUN curl -sS https://starship.rs/install.sh | sh -s -- -y
|
||||||
|
RUN npm install -g yarn
|
||||||
|
|
||||||
# initialize the demo user
|
# initialize the demo user
|
||||||
RUN useradd -m demo && \
|
RUN useradd -m demo && \
|
||||||
|
@ -25,12 +31,8 @@ RUN useradd -m demo && \
|
||||||
USER demo
|
USER demo
|
||||||
WORKDIR /home/demo
|
WORKDIR /home/demo
|
||||||
|
|
||||||
# install yay, might be used at a later point
|
ENV PATH="/home/demo/.local/bin:${PATH}"
|
||||||
# RUN git clone https://aur.archlinux.org/yay-bin.git && \
|
RUN sh -c "$(curl -fsLS get.chezmoi.io)" -- -b $HOME/.local/bin
|
||||||
# cd yay-bin && \
|
|
||||||
# makepkg -si --noconfirm && \
|
|
||||||
# cd .. && \
|
|
||||||
# rm -rf yay-bin
|
|
||||||
|
|
||||||
# copy the dotfiles
|
# copy the dotfiles
|
||||||
COPY --chown=demo:demo . /home/demo/.local/share/chezmoi
|
COPY --chown=demo:demo . /home/demo/.local/share/chezmoi
|
||||||
|
@ -38,13 +40,15 @@ COPY --chown=demo:demo . /home/demo/.local/share/chezmoi
|
||||||
RUN sudo chown -R demo:demo /home/demo/.local
|
RUN sudo chown -R demo:demo /home/demo/.local
|
||||||
|
|
||||||
# install them
|
# install them
|
||||||
RUN chezmoi init
|
RUN chezmoi init && chezmoi apply -x encrypted
|
||||||
RUN chezmoi apply -x encrypted
|
|
||||||
|
|
||||||
# set up antigen
|
# set up antigen
|
||||||
RUN zsh -c "zsh ~/.config/zsh/.zshrc; exit 0"
|
RUN zsh -c "zsh ~/.config/zsh/.zshrc; exit 0"
|
||||||
# set up neovim with PackerSync
|
|
||||||
RUN nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync'
|
# set up neovim, cloning lazy.nvim and installing plugins
|
||||||
|
RUN git clone --filter=blob:none --single-branch \
|
||||||
|
https://github.com/folke/lazy.nvim.git ~/.local/share/nvim/lazy/lazy.nvim
|
||||||
|
RUN nvim --headless "+Lazy! sync" +qa
|
||||||
|
|
||||||
# use zsh as the default shell
|
# use zsh as the default shell
|
||||||
ENTRYPOINT ["/bin/zsh"]
|
ENTRYPOINT ["/bin/zsh"]
|
||||||
|
|
Loading…
Reference in a new issue