-
Notifications
You must be signed in to change notification settings - Fork 69
/
Dockerfile
46 lines (37 loc) · 1.01 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
FROM bellsoft/liberica-openjdk-debian:17 AS build
WORKDIR /app
COPY . /app
RUN ./gradlew bootJar -x test -x check
FROM bellsoft/liberica-openjre-debian:17 AS run
WORKDIR /app
COPY \
--from=build \
/app/applications/credhub-api/build/libs/credhub.jar \
.
COPY \
--from=build \
/app/docker/config/application.yml \
/app/config/application.yml
COPY \
--from=build \
/app/docker/dev_uaa.pem \
/etc/trusted_cas/dev_uaa.pem
COPY \
--from=build \
/app/docker/setup_trust_store.sh \
.
COPY \
--from=build \
/app/docker/start_server.sh \
.
RUN mkdir -p /etc/config
EXPOSE 9000
ENV TRUST_STORE_PASSWORD=changeme
ENV KEY_STORE_PASSWORD=changeme
ENV ENCRYPTION_PASSWORD=changeme
ENV SERVER_CA_CERT_PATH="/etc/server_certs/server_ca_cert.pem"
ENV SERVER_CA_PRIVATE_KEY_PATH="/etc/server_certs/server_ca_private.pem"
ENV UAA_CA_PATH="/etc/trusted_cas/dev_uaa.pem"
ENV UAA_URL="https://35.196.32.64:8443"
ENV SUBJECT_ALTERNATIVE_NAMES="DNS:localhost, IP:127.0.0.1"
CMD /app/setup_trust_store.sh && /app/start_server.sh