diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c3f16a5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +# Docker build script for clara + +FROM fedora +MAINTAINER Ivan Radiček + +# Update and install required software +RUN yum update -y +RUN yum install -y python-devel python-pip gcc make Cython lpsolve-devel git + +# Install clara +WORKDIR /root/ +RUN git clone "https://github.com/iradicek/clara" +WORKDIR /root/clara +RUN make install + +# Add new user +RUN useradd clara + +# Copy examples +RUN mkdir /home/clara/examples +ADD examples/* /home/clara/examples/ +RUN chown -R clara:clara /home/clara/examples + +# Change user & working directory +USER clara +WORKDIR /home/clara \ No newline at end of file