Skip to content

Commit

Permalink
Added Dockerfile for docker installation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Radiček committed Mar 22, 2016
1 parent 1a3c88e commit d30f1de
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Dockerfile
@@ -0,0 +1,26 @@
# Docker build script for clara

FROM fedora
MAINTAINER Ivan Radiček <radicek@forsyte.at>

# 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

0 comments on commit d30f1de

Please sign in to comment.