-
Notifications
You must be signed in to change notification settings - Fork 111
/
Dockerfile
32 lines (25 loc) · 948 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
30
31
32
from juju2013/saucy-base
RUN sed -i.bak -r 's/(archive|security).ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
RUN apt-get update -y
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