Skip to content

Commit

Permalink
Adding initial build file for #50
Browse files Browse the repository at this point in the history
  • Loading branch information
dcam2015 committed Jan 14, 2016
1 parent c9d7fd4 commit 41b4327
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#
# Scala and sbt Dockerfile
#
# https://github.com/hseeberger/scala-sbt
#

# Pull base image
FROM java:8

ENV SCALA_VERSION 2.11.7
ENV SBT_VERSION 0.13.8

# Install Scala
## Piping curl directly in tar
RUN \
curl -fsL http://downloads.typesafe.com/scala/$SCALA_VERSION/scala-$SCALA_VERSION.tgz | tar xfz - -C /root/ && \
echo >> /root/.bashrc && \
echo 'export PATH=~/scala-$SCALA_VERSION/bin:$PATH' >> /root/.bashrc

# Install sbt
RUN \
curl -L -o sbt-$SBT_VERSION.deb https://dl.bintray.com/sbt/debian/sbt-$SBT_VERSION.deb && \
dpkg -i sbt-$SBT_VERSION.deb && \
rm sbt-$SBT_VERSION.deb && \
apt-get update && \
apt-get install sbt

# Install MySQL Client
RUN apt-get install -y -q mysql-client mysql-server

RUN sed -i -e "s/^bind-address\s*=\s*127.0.0.1/bind-address = 0.0.0.0/" /etc/mysql/my.cnf

RUN apt-get install -y memcached

# Install PostgreSQL 9.3
RUN apt-get install -y postgresql-9.4 postgresql-client-9.4 libpq-dev

# Install SQLite
RUN apt-get install -y sqlite3

# Define working directory
WORKDIR /root

EXPOSE 3306

0 comments on commit 41b4327

Please sign in to comment.