Installing Linux packages

Installing Linux packages in your Docker environment requires switching USER to root and then back to galileo. Although this applies to all Linux-based Docker images, I’ve included an example below that shows how to pull our Quantum ESPRESSO base image and install gnuplot to render Quantum ESPRESSO plots.

#The line below determines the build image to use

FROM hypernetlabs/simulator:q-e

USER root

#This line passes Ubuntu commands to Docker
RUN apt-get update -y && apt-get install -y gnuplot

USER galileo

#This line determines where to copy project files from, and where to copy them to
COPY . .

ENTRYPOINT ["bash",""]