| 1 |
|
| 2 |
FROM debian:13.5-slim |
| 3 |
|
| 4 |
RUN apt-get update \ |
| 5 |
&& apt-get install -y \ |
| 6 |
python3 \ |
| 7 |
python3-venv \ |
| 8 |
libssl-dev \ |
| 9 |
libboost-all-dev \ |
| 10 |
&& rm -rf /var/lib/apt/lists/* |
| 11 |
|
| 12 |
# Provision ecFlow dependencies |
| 13 |
RUN python3 -m venv /opt/local/python \ |
| 14 |
&& /opt/local/python/bin/pip install "troika>=0.2.6" |
| 15 |
|
| 16 |
# Provision ecFlow package |
| 17 |
## This Dockerfile assumes that the ecFlow package is available in the build context i.e. .../imachination/ecflow. |
| 18 |
# If you are using a different version, change the ECFLOW_PACKAGE variable accordingly. |
| 19 |
ARG ECFLOW_VERSION="latest" |
| 20 |
ARG ECFLOW_PACKAGE="ecflow-${ECFLOW_VERSION}-Linux.deb" |
| 21 |
COPY ${ECFLOW_PACKAGE} /tmp/${ECFLOW_PACKAGE} |
| 22 |
RUN dpkg -i /tmp/${ECFLOW_PACKAGE} \ |
| 23 |
&& rm /tmp/${ECFLOW_PACKAGE} |
| 24 |
|
| 25 |
ARG ECFLOW_LAUNCH="launch.sh" |
| 26 |
COPY ${ECFLOW_LAUNCH} /opt/local/bin/${ECFLOW_LAUNCH} |
| 27 |
RUN chmod +x /opt/local/bin/${ECFLOW_LAUNCH} |
| 28 |
|
| 29 |
# Set the working directory |
| 30 |
WORKDIR /workspace |
| 31 |
|
| 32 |
ENTRYPOINT ["/opt/local/bin/launch.sh"] |