diff --git a/Dockerfile b/Dockerfile index 41c0188..c50adab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,7 +33,24 @@ RUN useradd -m -s /bin/bash user && \ usermod -aG sudo user # Opcjonalnie: Ustawienie domyślnego użytkownika -# USER user +USER user + +# Install Vim-Plug for Vim plugin management +RUN curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ + https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim + + +# Copy the project into the image +#COPY --chown=user:user . /home/user/fapi +#COPY --chown=user:user ./_confs/* ./ +COPY ./_confs/* ./ + +# Install Vim plugins via Vim-Plug +RUN vim +'PlugInstall --sync' +qall + + +# Set the working directory for installing dependencies +WORKDIR /home/user/work # Ustawienie domyślnego polecenia CMD ["/bin/bash"] diff --git a/__vp b/__vp index 41e072b..0d660e2 100644 --- a/__vp +++ b/__vp @@ -1,7 +1,7 @@ f() { sudo docker run --rm -dit --privileged \ - -v "$(pwd)/app:/home/user/work" \ - -p 3333:3333 \ + -v "$(pwd)/../app:/home/user/work" \ + -p 4321:4321\ --name "$1" deb su - user; }; f $1 diff --git a/app b/app deleted file mode 160000 index db0752d..0000000 --- a/app +++ /dev/null @@ -1 +0,0 @@ -Subproject commit db0752d3e05f90f7fd8dda802b2366f3c6942b87