Last active
February 15, 2017 15:53
-
-
Save makslevental/b269ece4c5e6a5624a25288d432425e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
MAINTAINER "Maksim Levental" <[email protected]> | |
ENV container docker | |
RUN sed -i "/^# deb.*multiverse/ s/^# //" /etc/apt/sources.list | |
RUN echo 'deb http://us.archive.ubuntu.com/ubuntu/ xenial multiverse' >> /etc/apt/sources.list | |
RUN echo 'deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse' >> /etc/apt/sources.list | |
RUN apt-get update | |
RUN apt-get install -y libgmp-dev git yasm npm libcrack2-dev gcc g++ autoconf automake zlib1g-dev \ | |
x264 ffmpeg fdkaac libavformat-dev libswscale-dev libavcodec-dev libavutil-dev curl \ | |
pkg-config | |
RUN ln -s /usr/bin/nodejs /usr/bin/node | |
RUN curl -sSL https://get.haskellstack.org/ | sh | |
RUN useradd -m databrary | |
USER databrary | |
WORKDIR /home/databrary | |
RUN git clone git://github.com/databrary/databrary src | |
WORKDIR src | |
ARG commit=origin/build_system | |
RUN git remote update && git checkout $commit | |
RUN stack setup && stack build | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment