Mentions légales du service

Skip to content
Snippets Groups Projects

Update user and working directory in hands on Docker image.

1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -6,8 +6,8 @@ RUN (dnf update -y && dnf upgrade -y -q)
@@ -6,8 +6,8 @@ RUN (dnf update -y && dnf upgrade -y -q)
RUN dnf install -y git cmake clang gcc gcc-c++ ninja-build which hostname make && dnf clean packages
RUN dnf install -y git cmake clang gcc gcc-c++ ninja-build which hostname make && dnf clean packages
# Create non root user
# Create non root user
ENV USER "formation"
ENV USER "dev_cpp"
RUN useradd --create-home ${USER}
RUN useradd --create-home ${USER}
USER ${USER}
USER ${USER}
WORKDIR /home/${USER}/gettingstartedwithmoderncpp
WORKDIR /home/${USER}/training_cpp
\ No newline at end of file
\ No newline at end of file
Loading