-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ecca6d
commit 3ece913
Showing
4 changed files
with
25 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,26 @@ FROM alpine:3.20.2 | |
|
||
LABEL maintainer="Luke Griffith <[email protected]>" | ||
|
||
RUN apk add --no-cache neovim git curl editorconfig gcc make musl-dev go npm python3 bash | ||
RUN apk add --no-cache neovim git curl editorconfig gcc make musl-dev go npm python3 bash shadow | ||
|
||
ADD setup-nvim-container.sh /root/setup-nvim-container.sh | ||
ADD package-config.sh /root/package-config.sh | ||
# Create a new user with a home directory | ||
RUN useradd -m -d /home/nvim_user -s /bin/sh nvim_user | ||
RUN chmod 777 /home/nvim_user | ||
RUN chown -R nvim_user:nvim_user /home/nvim_user | ||
|
||
RUN bash /root/setup-nvim-container.sh | ||
# Set the new user as the default user | ||
USER nvim_user | ||
|
||
# Set the working directory to the new user's home | ||
WORKDIR /home/nvim_user | ||
|
||
|
||
RUN ls -la /home | ||
|
||
ADD setup-nvim-container.sh /home/nvim_user/setup-nvim-container.sh | ||
ADD package-config.sh /home/nvim_user/package-config.sh | ||
|
||
RUN bash /home/nvim_user/setup-nvim-container.sh | ||
|
||
WORKDIR /src | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/bin/bash | ||
|
||
mkdir -p /root/bare_config /root/.config/nvim | ||
git clone --bare https://github.com/lukegriffith/kickstart.nvim /root/bare_config | ||
git --git-dir=/root/bare_config --work-tree=/root/.config/nvim pull | ||
git --git-dir=/root/bare_config --work-tree=/root/.config/nvim checkout -f | ||
mkdir -p /home/nvim_user/bare_config /home/nvim_user/.config/nvim | ||
git clone --bare https://github.com/lukegriffith/kickstart.nvim /home/nvim_user/bare_config | ||
git --git-dir=/home/nvim_user/bare_config --work-tree=/home/nvim_user/.config/nvim pull | ||
git --git-dir=/home/nvim_user/bare_config --work-tree=/home/nvim_user/.config/nvim checkout -f | ||
|