alpine dockerifle

This commit is contained in:
2024-07-04 20:21:14 +02:00
parent 76ebc07967
commit 366d73e953
2 changed files with 41 additions and 5 deletions
+6 -5
View File
@@ -1,11 +1,12 @@
FROM archlinux:latest
FROM alpine:latest
LABEL maintainer="Marc Partensky <marc.partensky@gmail.com"
LABEL maintainer="Marc Partensky <marc.partensky@proton.me"
RUN touch .vimrc
RUN localedef -i en_US -f UTF-8 en_US.UTF-8
RUN pacman -Syu --noconfirm \
RUN apk update
RUN apk add \
git \
npm \
yarn \
@@ -14,8 +15,8 @@ RUN pacman -Syu --noconfirm \
python-pip \
neovim
RUN npm i -g neovim
RUN pip install neovim
# RUN npm i -g neovim
# RUN pip install neovim
RUN git clone --depth 1 https://github.com/wbthomason/packer.nvim\
~/.local/share/nvim/site/pack/packer/start/packer.nvim
+35
View File
@@ -0,0 +1,35 @@
FROM archlinux:latest
LABEL maintainer="Marc Partensky <marc.partensky@gmail.com"
RUN touch .vimrc
RUN localedef -i en_US -f UTF-8 en_US.UTF-8
RUN pacman -Syu --noconfirm \
git \
npm \
yarn \
# go \
# make \
python-pip \
neovim
RUN npm i -g neovim
RUN pip install neovim
RUN git clone --depth 1 https://github.com/wbthomason/packer.nvim\
~/.local/share/nvim/site/pack/packer/start/packer.nvim
COPY . /root/.config/nvim
RUN nvim --headless -c "TSInstallSync maintained" -c q
RUN nvim --headless -c PackerSync -c q
RUN nvim --headless \
+"source /root/.config/nvim/init.lua" \
+PackerSync \
+PackerUpdate \
+qall
# RUN nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync'
ENTRYPOINT ["nvim", "+checkhealth"]