diff --git a/Dockerfile b/Dockerfile index 1d65b16..05e6f48 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,9 +30,11 @@ COPY --from=javabuild /app/build/libs/irma_email_issuer.war /usr/local/tomee/web COPY ./src/main/resources/email-en.html /email-templates/email-en.html COPY ./src/main/resources/email-nl.html /email-templates/email-nl.html +RUN mkdir /usr/local/keys + ENV IRMA_CONF="/config/" ENV EMAIL_TEMPLATE_DIR="/email-templates/" EXPOSE 8080 # Copy the config file to the webapp. This is done at runtime so that the config file can be mounted as a volume. -CMD [ "/bin/sh", "-c", "for lang in 'en' 'nl'; do cp /config/config.js /usr/local/tomee/webapps/ROOT/$lang/assets/config.js; done && exec catalina.sh run" ] +CMD [ "/bin/sh", "-c", "openssl rsa -in /irma-jwt-key/priv.pem -outform der -out /usr/local/keys/priv.der && for lang in 'en' 'nl'; do cp /config/config.js /usr/local/tomee/webapps/ROOT/$lang/assets/config.js; done && exec catalina.sh run" ]