2021-01-22 17:32:12 +01:00
|
|
|
# Get the base Python image
|
2021-06-27 21:42:22 +02:00
|
|
|
FROM python:latest
|
2021-01-22 17:32:12 +01:00
|
|
|
|
2021-09-17 11:55:23 +02:00
|
|
|
# Install system dependencies
|
|
|
|
RUN apt-get update && apt-get install -y virtualenv gfortran libgtk-3-dev nano
|
|
|
|
|
|
|
|
# Add a non-privileged user
|
|
|
|
RUN useradd -ms /bin/bash -d /opt/msspec msspec
|
|
|
|
|
2021-01-22 17:32:12 +01:00
|
|
|
# Set the working directory in the container
|
2021-09-17 11:55:23 +02:00
|
|
|
USER msspec
|
|
|
|
RUN mkdir -p /opt/msspec/code
|
|
|
|
WORKDIR /opt/msspec/code
|
2021-01-22 17:32:12 +01:00
|
|
|
|
|
|
|
# Fetch the code
|
2021-09-27 15:50:52 +02:00
|
|
|
RUN git clone https://git.ipr.univ-rennes1.fr/epsi/msspec_python3.git .
|
2021-09-17 11:55:23 +02:00
|
|
|
#COPY --chown=msspec:msspec . .
|
2021-01-22 17:32:12 +01:00
|
|
|
|
|
|
|
# Install msspec
|
2021-09-17 11:55:23 +02:00
|
|
|
ENV PATH=/opt/msspec/.local/bin:$PATH
|
|
|
|
RUN make install VERBOSE=1
|
2021-01-22 17:32:12 +01:00
|
|
|
|
2021-06-27 21:42:22 +02:00
|
|
|
# Run the msspec frontend command on startup
|
2021-09-17 11:55:23 +02:00
|
|
|
ENTRYPOINT ["msspec"]
|