forked from adorsys/xs2a-adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
23 lines (16 loc) · 780 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
FROM adorsys/java:11
MAINTAINER https://github.com/adorsys/xs2a-adapter/
ENV SERVER_PORT 8081
ENV JAVA_OPTS -Xmx1024m
ENV JAVA_TOOL_OPTIONS -Xmx1024m
WORKDIR /opt/xs2a-adapter
COPY xs2a-adapter-app/target/xs2a-adapter-app.jar /opt/xs2a-adapter/xs2a-adapter-app.jar
COPY adapters/comdirect-adapter/xs2a_sandbox_comdirect_de.crt xs2a_sandbox_comdirect_de.crt
USER 0
RUN chmod go+w /opt/xs2a-adapter
RUN JAVA_LOCATION=$(readlink -f /etc/alternatives/java) \
&& JAVA_BIN=$(dirname "$JAVA_LOCATION") \
&& keytool -import -trustcacerts -keystore "$JAVA_BIN/../lib/security/cacerts" -alias comdirect -storepass changeit -file xs2a_sandbox_comdirect_de.crt -noprompt
USER 1001
EXPOSE 8081
CMD exec $JAVA_HOME/bin/java $JAVA_OPTS -jar /opt/xs2a-adapter/xs2a-adapter-app.jar