Skip to content

Instantly share code, notes, and snippets.

@saludes
Last active October 6, 2015 16:53
Show Gist options
  • Save saludes/443e344f90561612e4bb to your computer and use it in GitHub Desktop.
Save saludes/443e344f90561612e4bb to your computer and use it in GitHub Desktop.
Assuming you have `GF` sources downloaded from `darcs` repository, install `GF` with runtime extension. Name it saludes/gf-runtime.
FROM saludes/docker-gf
WORKDIR /GF
RUN darcs pull -a
RUN cabal install
CMD gf
FROM saludes/docker-gf
WORKDIR /GF
RUN darcs pull -a
WORKDIR /GF/src/runtime/c
RUN apt-get update
RUN apt-get install -y autoconf make libtool
RUN bash setup.sh configure
RUN bash setup.sh configure
RUN bash setup.sh build
RUN bash setup.sh install
WORKDIR /GF
ENV LD_LIBRARY_PATH=/usr/local/lib/
RUN cabal install -fserver -fc-runtime
FROM saludes/gf-runtime
RUN apt-get install -y ipython libpython-dev
WORKDIR /GF/src/runtime/python/
RUN python setup.py build
RUN python setup.py install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment