From f486ad61fcc7d05b2c28b28796bd85bfdd40ebf1 Mon Sep 17 00:00:00 2001 From: mpabi Date: Fri, 25 Oct 2024 12:52:30 +0000 Subject: [PATCH] l. p25.10 update cloud --- Dockerfile | 19 ++++++++++++++++++- __vp | 4 ++-- app | 1 - 3 files changed, 20 insertions(+), 4 deletions(-) delete mode 160000 app 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