-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (29 loc) · 1.09 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM debian:jessie
MAINTAINER Arthur Burkart <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
ENV LANG C.UTF-8
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
COPY ./app /app
# INSTALL DEPENDENCIES
RUN echo 'deb http://ppa.launchpad.net/hvr/ghc/ubuntu trusty main' > /etc/apt/sources.list.d/ghc.list \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F6F88286\
&& apt-get update \
&& apt-get install -y curl vim make libc6 libgmp10 libgmp-dev libdevil-dev zlib1g-dev g++ xz-utils cabal-install-1.22 \
&& rm -rf /var/curllib/apt/lists/*
# INSTALL HASKELL
RUN curl -sSL https://www.haskell.org/ghc/dist/7.10.1/ghc-7.10.1-x86_64-unknown-linux-deb7.tar.xz \
| tar -v -C /opt -xJ \
&& cd /opt/ghc-7.10.1 \
&& ./configure \
&& make install
ENV PATH /root/.cabal/bin:/opt/cabal/1.22/bin:$PATH
WORKDIR /app
# SETUP EMULATOR
RUN cd tom7/fceulib \
&& make all \
&& cp libemulator.so /app/tom7/libemulator.so
RUN tom7/./add_emulator_to_LD_LIBRARY_PATH.sh && source ~/.bashrc
RUN cabal update
RUN cabal sandbox init
RUN cabal install --only-dependencies
RUN cabal build