Skip to content

Commit

Permalink
ci: fix hadolint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Allaman committed Mar 24, 2024
1 parent 817e39c commit 3449e1f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
ARG ARCH
ARG BASE_IMAGE
# hadolint ignore=DL3007
FROM ${ARCH}allaman/nvim-full:latest

RUN mkdir -p .config/nvim \
&& mkdir -p .local/share/nvim/mason/packages \
RUN mkdir -p ~/config/nvim \
&& mkdir -p ~/.local/share/nvim/mason/packages \
## Create empty user config file
&& echo "return {}" > .nvim_config.lua \
&& echo "return {}" > ~/.nvim_config.lua \
## Add mason tools dir to path
&& echo "PATH=$PATH:~/.local/share/nvim/mason/bin" >> ~/.bashrc

COPY --chown=nvim:nvim . .config/nvim
WORKDIR /home/nvim/.config/nvim
COPY --chown=nvim:nvim . .
# Install plugins and tools with Mason and go.nvim
# HACK: Use of sleep is not cool but commands are not blocking (! is not working either)
RUN nvim --headless "+Lazy! sync" +qa
Expand Down

0 comments on commit 3449e1f

Please sign in to comment.