From d520405a73214e1f5ebcd348d36fdf53ca276b98 Mon Sep 17 00:00:00 2001 From: sylvain tricot Date: Fri, 2 Jul 2021 18:21:10 +0200 Subject: [PATCH] Concatenated the last RUN in a single one. --- Dockerfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index b9e3fe6..c040593 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,9 +18,13 @@ RUN make install VERBOSE=1 INSTALL_PREFIX=/opt RUN useradd -ms /bin/bash msspec USER msspec WORKDIR /home/msspec -RUN echo "export PS1=\"\w\$ \"" >> .bashrc -RUN echo "$(msspec -e)" >> .bashrc -RUN mkdir data + +# Customize a bit the prompt and load the msspec virtualenv +RUN echo "alias idle=\"python -m idlelib.idle 2>/dev/null\"" >> .bashrc && \ + echo "export PS1=\"\w\$ \"" >> .bashrc && \ + echo "$(msspec -e)" >> .bashrc && \ + mkdir data && \ + cp /code/doc/source/tutorials/copper/Cu_simple.py data/example.py # Run the msspec frontend command on startup ENTRYPOINT ["/bin/bash"]