File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313# Once in the image you should install persistent dependencies (sandbox is optional)
1414# RUN cd persistent-test && cabal sandbox init && cabal install --only-dep
1515
16- FROM zsol/ haskell-platform-2014.2.0.0
16+ FROM haskell:7.10
1717MAINTAINER Greg Weber
1818
19- RUN sudo apt-get update
19+ RUN apt-get update && apt-get install sudo && \
20+ # Sqlite
21+ apt-get install -y sqlite3 libsqlite3-dev && \
2022
21- # Sqlite
22- RUN sudo apt-get install -y sqlite3 libsqlite3 -dev
23+ # Postgres
24+ apt-get install -y postgresql-client libpq -dev && \
2325
24- # Postgres
25- RUN sudo apt-get install -y postgresql-client libpq -dev
26+ # MySQL
27+ apt-get install -y libpcre3-dev libmysqlclient -dev && \
2628
27- # MySQL
28- RUN sudo apt-get install -y libpcre3-dev libmysqlclient-dev
29+ apt-get clean
30+
31+ ENV LC_ALL C.UTF-8
32+ ENV LANGUAGE C.UTF-8
33+
34+ RUN useradd -m -d /home/haskell -s /bin/bash haskell
35+ RUN mkdir -p /etc/sudoers.d && echo "haskell ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/haskell && chmod 0440 /etc/sudoers.d/haskell
36+ ENV HOME /home/haskell
37+ WORKDIR /home/haskell
38+ USER haskell
2939
3040ENV PATH .cabal-sandbox/bin:.cabal/bin:$PATH:./
31- RUN sudo apt-get install -y locales && \
32- sudo mkdir -p /var/lib/locales/supported.d && \
33- sudo sh -c 'echo "en_US.UTF-8 UTF-8" >> /var/lib/locales/supported.d/local' && \
34- sudo dpkg-reconfigure locales && \
35- sudo update-locale LANG="en_US.UTF-8 UTF-8"
36- ENV LANG C.UTF-8
You can’t perform that action at this time.
0 commit comments