-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |