-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (29 loc) · 765 Bytes
/
Dockerfile
File metadata and controls
36 lines (29 loc) · 765 Bytes
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
33
34
35
FROM java:8
MAINTAINER Hyun Min Choi <hyunmin.personal@gmail.com>
RUN apt-get -y update
RUN apt-get -y upgrade
RUN apt-get install -y build-essential \
gcc \
nginx \
supervisor \
git \
vim \
redis-server
RUN update-ca-certificates -f
ENV SCALA_VERSION 2.12.1
ENV SBT_VERSION 0.13.15
# install scala
RUN wget https://downloads.typesafe.com/scala/$SCALA_VERSION/scala-$SCALA_VERSION.deb
RUN dpkg -i scala-$SCALA_VERSION.deb && \
rm scala-$SCALA_VERSION.deb
# install sbt
RUN wget https://dl.bintray.com/sbt/debian/sbt-$SBT_VERSION.deb
RUN dpkg -i sbt-$SBT_VERSION.deb && \
rm sbt-$SBT_VERSION.deb && \
sbt sbtVersion && \
rm -rf target/
# sbt warmup
ADD . /var/www
WORKDIR /var/www/sbt-warmup
RUN sbt run
RUN rm -rf ./*