-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (28 loc) · 1011 Bytes
/
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
FROM index.docker.io/library/haskell:7.10.2
MAINTAINER qinka
ADD . /src
RUN ls -a /src
RUN cd /src && cabal sandbox init
RUN apt-get update
RUN apt-get -y install wget
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" > /etc/apt/sources.list.d/pgdg.list
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
RUN apt-get update
RUN apt-get -y install postgresql-server-dev-9.4
RUN cabal update
RUN cd /src && cabal install 'warp < 3.2'
RUN cd /src && cabal install directory
RUN cd /src && cabal install yesod -j9
RUN cd /src && cabal install persistent-postgresql -j9
RUN cd /src && cabal install SHA
RUN cd /src && cabal install pureMD5
RUN cd /src && cabal install cmdargs
RUN cd /src && cabal install --flags="docker-launch -normal-launch"
RUN cp /src/.cabal-sandbox/bin/* /usr/bin
RUN mkdir ~/.yb
RUN cp /src/image/favicon.ico ~/.yb
RUN rm -r src
EXPOSE 3000
ENV YRARBIL_BACKEND_PORT 3000
ENV YRARBIL_BACKEND_CONNECTIONLIMIT 10
CMD yb.docker.launch