Skip to content

Instantly share code, notes, and snippets.

@kaitoii11
Created February 20, 2021 05:26
Show Gist options
  • Save kaitoii11/e4dccf44c4bc359f3f51cf03d211f9df to your computer and use it in GitHub Desktop.
Save kaitoii11/e4dccf44c4bc359f3f51cf03d211f9df to your computer and use it in GitHub Desktop.
Dockerfile to build libsbmlsim with Java binding
FROM openjdk:8-jdk as libsbmlsim
ENV LD_LIBRARY_PATH /usr/lib64
RUN apt update && \
apt -y upgrade && \
apt install -y cmake g++ libbz2-dev swig wget && \
wget -q http://downloads.sourceforge.net/project/sbml/libsbml/5.19.0/stable/Linux/64-bit/libSBML-5.19.0-Linux-x64.deb && \
dpkg -i libSBML-5.19.0-Linux-x64.deb
RUN wget -q https://github.com/libsbmlsim/libsbmlsim/archive/v1.4.0.tar.gz -O libsbmlsim.tar.gz && \
tar xzf libsbmlsim.tar.gz && \
mkdir -p libsbmlsim-1.4.0/build
WORKDIR libsbmlsim-1.4.0/build
RUN cmake .. -D WITH_JAVA=ON && \
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment