Skip to content

Commit

Permalink
stupid ass bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lukegriffith committed Aug 17, 2024
1 parent 80f2be6 commit cda709e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions neovim.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@ LABEL maintainer="Luke Griffith <[email protected]>"
RUN apk add --no-cache neovim git curl editorconfig gcc make musl-dev go npm python3 bash shadow

# Create a new user with a home directory
RUN useradd -m -d /home/github -s /bin/sh github
RUN chmod 777 /home/github
RUN chown -R github:github /home/github
RUN useradd -m -d /github/home -s /bin/sh github
RUN chmod 777 /github/home
RUN chown -R github:github /github/home

# Set the new user as the default user
USER github

# Set the working directory to the new user's home
WORKDIR /home/github
WORKDIR /github/home


RUN ls -la /home

ADD setup-nvim-container.sh /home/github/setup-nvim-container.sh
ADD package-config.sh /home/github/package-config.sh
ADD setup-nvim-container.sh /github/home/setup-nvim-container.sh
ADD package-config.sh /github/home/package-config.sh

RUN bash /home/github/setup-nvim-container.sh
RUN bash /github/home/setup-nvim-container.sh

WORKDIR /src

Expand Down
8 changes: 4 additions & 4 deletions setup-nvim-container.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

mkdir -p /home/github/bare_config /home/github/.config/nvim
git clone --bare https://github.com/lukegriffith/kickstart.nvim /home/github/bare_config
git --git-dir=/home/github/bare_config --work-tree=/home/github/.config/nvim pull
git --git-dir=/home/github/bare_config --work-tree=/home/github/.config/nvim checkout -f
mkdir -p /github/home/bare_config /github/home/.config/nvim
git clone --bare https://github.com/lukegriffith/kickstart.nvim /github/home/bare_config
git --git-dir=/github/home/bare_config --work-tree=/github/home/.config/nvim pull
git --git-dir=/github/home/bare_config --work-tree=/github/home/.config/nvim checkout -f

0 comments on commit cda709e

Please sign in to comment.