forked from G-Node/GCA-Web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile_dependencies
35 lines (28 loc) · 1.08 KB
/
Dockerfile_dependencies
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
# Dockerfile preparing the dependencies for the full GCA-Web build
FROM java:8
ENV ACTIVATOR_VERSION 1.3.7
ENV DEBIAN_FRONTEND noninteractive
WORKDIR /tmp
RUN wget https://downloads.typesafe.com/typesafe-activator/${ACTIVATOR_VERSION}/typesafe-activator-${ACTIVATOR_VERSION}-minimal.zip
RUN unzip -q typesafe-activator-${ACTIVATOR_VERSION}-minimal.zip -d /usr/local
ENV PATH /usr/local/activator-${ACTIVATOR_VERSION}-minimal:$PATH
# install to srv gca
RUN mkdir -p /srv/gca
RUN mkdir -p /srv/gca/figures
RUN mkdir -p /srv/gca/figures_mobile
RUN mkdir -p /srv/gca/banners
RUN mkdir -p /srv/gca/banners_mobile
ADD app /srv/gca/app
ADD conf /srv/gca/conf
ADD project/plugins.sbt /srv/gca/project/
ADD project/build.properties /srv/gca/project/
ADD public /srv/gca/public
ADD test /srv/gca/test
ADD build.sbt /srv/gca/
# only required for local tests
RUN mkdir -p /srv/gca/db
RUN echo "db.default.url=\"jdbc:h2:/srv/gca/db/gca-web\"" >> /srv/gca/conf/application.dev.conf
# test and stage
WORKDIR /srv/gca
# Required to get dependencies before running the startup script.
RUN activator test stage