forked from NetLogo/Galapagos
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (31 loc) · 909 Bytes
/
Dockerfile
File metadata and controls
44 lines (31 loc) · 909 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
36
37
38
39
40
41
42
43
FROM smartkit/scala-sbt-nodejs:2.12.2-0.13.16-6
#Java 8, Scala 2.11 & Sbt 0.13
#FROM janschultecom/docker-scala
# Base image
#FROM hseeberger/scala-sbt
RUN apt-get install -y nodejs
# caching dependencies
COPY ["build.sbt", "/tmp/build/"]
COPY ["project/plugins.sbt", "project/build.properties", "/tmp/build/project/"]
COPY ["project/build.properties", "/"]
RUN apt-get install git
#RUN apt-get update
#RUN apt-get install nodejs
RUN cd /tmp/build
RUN sbt compile
RUN sbt test:compile
# clean
RUN rm -rf /tmp/build
# copy code
COPY . /app/
WORKDIR /app
#RUN git clone https://github.com/gpgekko/sbt-autoprefixer /root/.sbt/0.13/staging/a13d8a10bd266a4d281d/sbt-autoprefixer
#COPY sbt-autoprefixer /root/.sbt/0.13/staging/a13d8a10bd266a4d281d/
RUN npm install
#RUN sbt update
#RUN sbt compile
#RUN sbt test:compile
RUN sbt
EXPOSE 9000
#CMD ["sbt","run"]
CMD ["sbt", "-mem", "1024", "run"]