Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 48ad3dd2 authored by Vicente Mataix Ferrándiz's avatar Vicente Mataix Ferrándiz
Browse files

Revert user

parent 3143064a
Branches
Tags
No related merge requests found
Pipeline #245740 passed
...@@ -25,6 +25,7 @@ RUN apt-get -y clean ...@@ -25,6 +25,7 @@ RUN apt-get -y clean
# Creation of a "non-root" user # Creation of a "non-root" user
ENV USER "formation" ENV USER "formation"
RUN useradd --create-home ${USER} RUN useradd --create-home ${USER}
USER ${USER}
# Default working directory is # Default working directory is
WORKDIR /home/${USER} WORKDIR /home/${USER}
...@@ -34,12 +35,11 @@ RUN rm -rf Miniconda3-latest-Linux-x86_64.sh ...@@ -34,12 +35,11 @@ RUN rm -rf Miniconda3-latest-Linux-x86_64.sh
# Changing to home # Changing to home
WORKDIR /home/${USER} WORKDIR /home/${USER}
USER ${USER}
# Create the environment: # Create the environment:
WORKDIR /home/${USER}/gettingstartedwithmoderncpp WORKDIR /home/${USER}/gettingstartedwithmoderncpp
COPY environment.yml . COPY environment.yml .
RUN /home/${USER}/miniconda3/bin/conda env create -f environment.yml RUN /home/${USER}/miniconda3/bin/conda env create -f environment.yml
RUN /home/${USER}/miniconda3/bin/conda clean -a RUN /home/${USER}/miniconda3/bin/conda clean -a
# Change the default shell to be bash # Change the default shell to be bash
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment