forked from broadinstitute/firecloud-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
61 lines (48 loc) · 1.69 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM broadinstitute/openidc-baseimage:1.8.5
# How to install OpenJDK 8 from:
# http://ubuntuhandbook.org/index.php/2015/01/install-openjdk-8-ubuntu-14-04-12-04-lts/
# Add repo, update, cleanup all in one command to minimize layer size.
RUN \
add-apt-repository ppa:openjdk-r/ppa && apt-get update --fix-missing \
&& apt-get install -y -qq --no-install-recommends \
openjdk-8-jdk \
php5-cli \
rlfe \
&& apt-get -yq autoremove && apt-get -yq clean && rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/* && rm -rf /var/tmp/*
RUN curl https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein > /usr/bin/lein
RUN chmod 755 /usr/bin/lein
# Tell lein that running as root is okay.
ENV LEIN_ROOT=1
# Actually install leiningen.
RUN lein --version
WORKDIR /app
ENV SERVER_NAME=dhost
ENV BUILD_TYPE=minimized
COPY project.clj project.clj
# Download deps and plugins.
RUN lein cljsbuild once
# File copies are explicit to ensure rebuilds use as much cache as possible.
COPY src/cljs src/cljs
COPY src/static src/static
COPY script/common script/common
RUN ./script/common/build.sh once
COPY src/docker/run-apache.sh /etc/service/apache2/run
# openidc-baseimage requires this unused variable.
ENV CALLBACK_URI=http://example.com/
EXPOSE 80
EXPOSE 443
ENV HTTPD_PORT=80 SSL_HTTPD_PORT=443
ENV LOG_LEVEL=warn
ENV ORCH_URL_ROOT=http://orch:8080
# Override in development since figwheel does not support secure websockets.
ENV HTTPS_ONLY=true
# TODO(dmohs): openidc-baseimage warns about these undefined environment variables, though they are
# not used in our site.conf.
# - CLIENTID
# - CLIENTSECRET
# - OIDC_SCOPES
# - OIDC_COOKIE
# - CLIENTID
# - CLIENTSECRET