Public | Automated Build

Last pushed: a day ago
FROM tomcat:7-jre7 MAINTAINER Matthias Grüter <> # To update, check ENV ARTIFACTORY_VERSION 3.9.2 ENV ARTIFACTORY_SHA1 245aeb7b2d77830462067d5a19c3bd32ae014ddf # Disable Tomcat's manager application. RUN rm -rf webapps/* # Redirect URL from / to artifactory/ using UrlRewriteFilter COPY urlrewrite/WEB-INF/lib/urlrewritefilter.jar / COPY urlrewrite/WEB-INF/urlrewrite.xml / RUN \ mkdir -p webapps/ROOT/WEB-INF/lib && \ mv /urlrewritefilter.jar webapps/ROOT/WEB-INF/lib && \ mv /urlrewrite.xml webapps/ROOT/WEB-INF/ # Fetch and install Artifactory OSS war archive. RUN \ echo $ARTIFACTORY_SHA1 > && \ curl -L -o${ARTIFACTORY_VERSION}.zip && \ sha1sum -c && \ unzip -j "artifactory-*/webapps/artifactory.war" -d webapps && \ rm # Expose tomcat runtime options through the RUNTIME_OPTS environment variable. # Example to set the JVM's max heap size to 256MB use the flag # '-e RUNTIME_OPTS="-Xmx256m"' when starting a container. RUN echo 'export CATALINA_OPTS="$RUNTIME_OPTS"' > bin/ # Artifactory home RUN mkdir -p /artifactory ENV ARTIFACTORY_HOME /artifactory # Expose Artifactories data, log and backup directory. VOLUME /artifactory/data VOLUME /artifactory/logs VOLUME /artifactory/backup WORKDIR /artifactory # Add hook to install custom artifactory.war (i.e. Artifactory Pro) to replace OSS distribution. ONBUILD COPY artifactory.war $CATALINA_HOME/webapps/artifactory.war