l. p25.10 update cloud

This commit is contained in:
mpabi 2024-10-25 12:52:30 +00:00
parent cf225129a5
commit f486ad61fc
3 changed files with 20 additions and 4 deletions

View File

@ -33,7 +33,24 @@ RUN useradd -m -s /bin/bash user && \
usermod -aG sudo user usermod -aG sudo user
# Opcjonalnie: Ustawienie domyślnego użytkownika # 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 # Ustawienie domyślnego polecenia
CMD ["/bin/bash"] CMD ["/bin/bash"]

4
__vp
View File

@ -1,7 +1,7 @@
f() { f() {
sudo docker run --rm -dit --privileged \ sudo docker run --rm -dit --privileged \
-v "$(pwd)/app:/home/user/work" \ -v "$(pwd)/../app:/home/user/work" \
-p 3333:3333 \ -p 4321:4321\
--name "$1" deb su - user; --name "$1" deb su - user;
}; };
f $1 f $1

1
app

@ -1 +0,0 @@
Subproject commit db0752d3e05f90f7fd8dda802b2366f3c6942b87