forked from cyverse-archive/de-gxt-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (20 loc) · 1011 Bytes
/
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
FROM discoenv/openjdk-base:master
# Include CA certs so the UI server-side can make https calls to 3rd party services.
RUN apk add --no-cache ca-certificates java-cacerts
ENV CONF_TEMPLATE=/etc/iplant/de/de.properties.tmpl
ENV CONF_FILENAME=de.properties
ENV PROGRAM=java
ARG git_commit=unknown
ARG version="2.9.0"
ARG descriptive_version=unknown
LABEL org.cyverse.git-ref="$git_commit"
LABEL org.cyverse.version="$version"
LABEL org.cyverse.descriptive-version="$descriptive_version"
ADD target/de-copy.war /de.war
ADD de.properties.tmpl /etc/iplant/de/de.properties.tmpl
ADD de-application.yaml /etc/iplant/de/de-application.yaml
EXPOSE 8080
ENTRYPOINT ["run-service", "--exclude-config-arg", "-Dlogging.config=file:/etc/iplant/de/logging/de-ui.xml", "-jar", "de.war", "--spring.config.location=file:/etc/iplant/de/de-application.yaml"]
LABEL org.label-schema.vcs-ref="$git_commit"
LABEL org.label-schema.vcs-url="https://github.com/cyverse-de/ui"
LABEL org.label-schema.version="$descriptive_version"