This doesn't mean that the contained application will run correctly yet, but at least all the dependencies are satisfied.
JEOPOOPTQ7ESS2IG7KROXNF67RB37X63GVM6UK3FYMZG6VUUQG2AC
apt-get install -y --no-install-recommends \
cabal-install-1.22 \
ghc-7.10.2 \
happy-1.19.5 \
alex-3.1.4 \
zlib1g-dev \
libtinfo-dev \
libsqlite3-0 \
libsqlite3-dev \
ca-certificates && \
apt-get install -y --no-install-recommends cabal-install-1.22 ghc-7.8.4 happy-1.19.4 alex-3.1.3 \
zlib1g-dev libtinfo-dev libsqlite3-0 libsqlite3-dev ca-certificates && \
ENV PATH /root/.cabal/bin:/opt/cabal/1.22/bin:/opt/ghc/7.10.2/bin:/opt/happy/1.19.5/bin:/opt/alex/3.1.4/bin:$PATH
ENV PATH /root/.cabal/bin:/opt/cabal/1.22/bin:/opt/ghc/7.8.4/bin:/opt/happy/1.19.4/bin:/opt/alex/3.1.3/bin:$PATH
# Install libpq-dev to enable postgresql-simple build
RUN apt-get update && \
apt-get install -y --no-install-recommends wget && \
echo 'deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main' > /etc/apt/sources.list.d/pgdg.list && \
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
apt-get update && \
apt-get install -y --no-install-recommends libpq-dev
Docker Installation
===================
The Aftok server application is now deployable under Docker. Here's how you can
go about running the server in a local docker container:
docker build -t <yourid>/aftok:<version> .
for example,
docker build -t nuttycom/aftok:0.1 .