msspec_python3/Dockerfile

23 lines
552 B
Docker
Raw Normal View History

2021-01-22 17:32:12 +01:00
# Get the base Python image
FROM python:latest
2021-01-22 17:32:12 +01:00
# Set the working directory in the container
WORKDIR /code
# Fetch the code
RUN git clone --branch devel https://git.ipr.univ-rennes1.fr/epsi/msspec_python3.git .
2021-01-22 17:32:12 +01:00
# Install system dependencies
RUN apt-get update && apt-get install -y virtualenv gfortran libgtk-3-dev
2021-01-22 17:32:12 +01:00
# Install msspec
ENV PATH=/opt/bin:$PATH
2021-01-22 17:32:12 +01:00
RUN make install VERBOSE=1 INSTALL_PREFIX=/opt
# Add a non-privileged user
RUN useradd -ms /bin/bash msspec
2021-01-22 17:32:12 +01:00
USER msspec
# Run the msspec frontend command on startup
2021-01-22 17:32:12 +01:00
ENTRYPOINT ["msspec"]