From 5a8b41da4a54b485b6ca9e4f6049745ac84de728 Mon Sep 17 00:00:00 2001 From: Alexis Koralewski Date: Mon, 24 Jul 2023 17:00:25 +0200 Subject: [PATCH] update dockerfile (can't copy outside build context) --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e3c308a..8b8015b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -161,7 +161,7 @@ RUN echo | openssl s_client -connect gitlab.irap.omp.eu:443 -servername gitlab.i ################################# # Adding new user (pyros_user) and creating his home folder -RUN useradd --create-home --shell /bin/bash pyros_user --uid $uid +RUN useradd -m -s /bin/bash pyros_user --uid $uid # Create the work dir and set permissions as pyros_user RUN mkdir -p /home/pyros_user/app/ && chown -R pyros_user:pyros_user /home/pyros_user/app @@ -177,7 +177,7 @@ USER pyros_user # Copy local host machine files to image -COPY --chown=pyros_user:pyros_user .. . +COPY --chown=pyros_user:pyros_user . . # Copy some aliases RUN cp .bash_aliases .. #RUN mv .bash_aliases .. -- libgit2 0.21.2