forked from yesodweb/yesodweb.com-content
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (23 loc) · 824 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
29
from juju2013/saucy-base
maintainer Greg Weber
RUN apt-get install -y adduser
RUN adduser --disabled-password --gecos "haskell,666" haskell
RUN echo "Defaults:haskell !requiretty" >> /etc/sudoers
RUN apt-get update
RUN apt-get install -y haskell-platform
RUN apt-get install -y asciidoc
# Postgres
RUN apt-get install -y postgresql postgresql-client postgresql-contrib libpq-dev
# Sqlite
RUN apt-get install -y sqlite3 libsqlite3-dev
# # when the building step is done, run the given <image>, mounting this directory inside
# sudo docker run -name yesodcontent -v `pwd`:/home/haskell -t -i <image> /bin/bash
#
# # switch to the haskell user in the image and its home directory
# su haskell
# cd
#
# # install the latest cabal
# RUN cabal update && cabal install Cabal cabal-install
# PATH=~/.cabal/bin:$PATH
# hash -r