-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
executable file
·44 lines (34 loc) · 1.09 KB
/
Dockerfile
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
36
37
38
39
40
41
42
43
44
# Java 8 is required
FROM adoptopenjdk:8
ENV SCALA_VERSION 2.12.1
ENV SBT_VERSION 1.4.9
#ENV SCALA_DEB http://www.scala-lang.org/files/archive/scala-$SCALA_VERSION.deb
#
RUN mkdir /project/
#
COPY . /project/
#
#WORKDIR /project/1-src/feature-extractor
#WORKDIR /project/1-src/1-java
WORKDIR /project/src/play-api
# install sbt
RUN mkdir -p /usr/local/share/sbt-launcher-packaging && \
curl --progress-bar \
--retry 3 \
--retry-delay 15 \
--location "https://github.com/sbt/sbt/releases/download/v${SBT_VERSION}/sbt-${SBT_VERSION}.tgz" \
--output "/tmp/sbt-${SBT_VERSION}.tgz" && \
tar -xzf "/tmp/sbt-${SBT_VERSION}.tgz" -C /usr/local/share/sbt-launcher-packaging --strip-components=1 && \
ln -s /usr/local/share/sbt-launcher-packaging/bin/sbt /usr/local/bin/sbt && \
rm -f "/tmp/sbt-${SBT_VERSION}.tgz"
#RUN \
# wget --quiet --output-document=scala.deb $SCALA_DEB && \
# dpkg -i scala.deb && \
# rm -f *.deb
# Install Scala Build Tool sbt
#RUN apt-get install -y --force-yes sbt
# Run
CMD ["sbt clean"]
CMD ["sbt build"]
CMD ["sbt", "run"]
# -mem 1024 2048 4096