Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
h4ckm1n-dev authored May 9, 2024
1 parent 7557f6f commit 91933f7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,21 @@ FROM debian:bullseye-slim
# Set a maintainer label
LABEL maintainer="h4ckm1n-dev"

# Install necessary packages only
# Install necessary packages including development tools
RUN apt-get update && apt-get install -y \
git \
curl \
neovim \
lua5.3 \
luarocks \
build-essential \
liblua5.3-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

# Install Lua and luacheck
RUN luarocks install luacheck
# Install Lua and luacheck, including its dependencies
RUN luarocks install luafilesystem && \
luarocks install luacheck

# Set the working directory for subsequent commands
WORKDIR /root
Expand All @@ -24,9 +27,6 @@ WORKDIR /root
RUN mkdir -p ~/.config/nvim && \
git clone https://github.com/h4ckm1n-dev/h4ckm1n-nvim.git ~/.config/nvim

# Install neovim support for Lua
RUN luarocks install --server=https://luarocks.org/dev lua-nvim

# Set the entrypoint to Neovim, making the container start Neovim by default
ENTRYPOINT ["nvim"]

Expand Down

0 comments on commit 91933f7

Please sign in to comment.