FROM cloudcms/api-server:3.2.64

MAINTAINER Cloud CMS <support@cloudcms.com>

# copy the custom properties and classes into place
# this includes the license file in the ./classes/gitana/license directory
COPY ./classes/ /opt/tomcat/shared/classes/

# merge our certificate into the truststore
ADD rds-combined-ca-bundle.pem /etc/ssl/rds-combined-ca-bundle.pem
RUN \
    cd $JAVA_HOME/lib/security \
    && keytool -keystore cacerts -storepass changeit -noprompt -trustcacerts -alias mongodb -import -file /etc/ssl/rds-combined-ca-bundle.pem