diff --git a/Dockerfile b/Dockerfile index 5f9fdb3510d1c15925c3122c778c873aa4a7db4f..97d09d60fbc11bbc91a679e553a206bdace8d419 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,9 +6,10 @@ LABEL maintainer "frank@sauerburger.com" # install python3, setuptools and git RUN apt-get update && apt-get install -y \ - python3 python3-setuptools git\ + python3 python3-setuptools git sudo\ && rm -rf /var/lib/apt/lists/* # install doxec -RUN git clone https://srv.sauerburger.com/esel/doxec.git && cd doxec && git checkout b0ce804f && python3 setup.py install -RUN echo "" | adduser --disabled-password student +RUN git clone https://srv.sauerburger.com/esel/doxec.git && cd doxec && git checkout b0ce804f && python3 setup.py install +RUN echo "" | adduser --disabled-password student && echo "student ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers +USER student diff --git a/README.md b/README.md index cc194a0c8a3aa1df1378322a4fd02a9779c74d92..9042607d689a623a993b7a83dc4783a69a7804b1 100644 --- a/README.md +++ b/README.md @@ -22,21 +22,10 @@ analysis and data presentation. To install all the packages on Ubuntu, you can run the following command line. ```bash -sudo apt-get install python3 python3-pip -pip3 install --user numpy scipy matplotlib -``` -<!-- -Doxec in a docker container needs a slightly different command, please keep them -in-sync. ---> -<!-- console -```bash -$ apt-get update -$ apt-get -y install python3 python3-pip -$ su student +$ sudo apt-get update +$ sudo apt-get install -y python3 python3-pip $ pip3 install --user numpy scipy matplotlib ``` ---> # Prerequisites and Structure