From fd82f97ac01e9573262594375c9299ecd4ca92e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Twoje=20Imi=C4=99=20Nazwisko?= Date: Fri, 25 Oct 2024 08:48:37 -0400 Subject: [PATCH] u --- Dockerfile | 7 ++++--- __vp | 2 +- app | 1 - 3 files changed, 5 insertions(+), 5 deletions(-) delete mode 160000 app diff --git a/Dockerfile b/Dockerfile index 41c0188..d025511 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,9 +28,9 @@ RUN apt-get update && apt-get install -y \ RUN echo "root:rootpass" | chpasswd # Tworzenie nowego użytkownika 'user' z hasłem 'pass' i dodanie do grupy sudo -RUN useradd -m -s /bin/bash user && \ - echo "user:pass" | chpasswd && \ - usermod -aG sudo user +#RUN useradd -m -s /bin/bash user && \ +# echo "user:pass" | chpasswd && \ +# usermod -aG sudo user # Opcjonalnie: Ustawienie domyślnego użytkownika # USER user @@ -38,3 +38,4 @@ RUN useradd -m -s /bin/bash user && \ # Ustawienie domyślnego polecenia CMD ["/bin/bash"] + diff --git a/__vp b/__vp index 41e072b..fc04ace 100644 --- a/__vp +++ b/__vp @@ -1,6 +1,6 @@ f() { sudo docker run --rm -dit --privileged \ - -v "$(pwd)/app:/home/user/work" \ + -v "$(pwd)/../app:/home/user/work" \ -p 3333:3333 \ --name "$1" deb su - user; }; diff --git a/app b/app deleted file mode 160000 index db0752d..0000000 --- a/app +++ /dev/null @@ -1 +0,0 @@ -Subproject commit db0752d3e05f90f7fd8dda802b2366f3c6942b87