Mercurial > lada > lada-server
diff Dockerfile @ 852:2f467a014619
Added lighttpd to Dockerfile in order to serve apidoc is necessary
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Wed, 27 Jan 2016 16:27:03 +0100 |
parents | c19bd80d1f62 |
children | 27febad6fb84 |
line wrap: on
line diff
--- a/Dockerfile Wed Jan 27 15:44:31 2016 +0100 +++ b/Dockerfile Wed Jan 27 16:27:03 2016 +0100 @@ -20,7 +20,7 @@ # RUN apt-get update -y && \ apt-get install -y libpostgis-java libjts-java \ - maven + maven lighttpd # # Set up Wildfly @@ -35,7 +35,7 @@ RUN $JBOSS_HOME/bin/add-user.sh admin secret --silent -EXPOSE 8080 9990 +EXPOSE 8080 9990 80 # # Add LADA-server repo @@ -73,12 +73,19 @@ # # Build and deploy LADA-server # -RUN mvn clean compile package +RUN mvn clean compile package javadoc:javadoc RUN mv target/lada-server-2.2.0.war $JBOSS_HOME/standalone/deployments RUN touch $JBOSS_HOME/standalone/deployments/lada-server-2.2.0.war.dodeploy +##configure lighttpd for apidoc +RUN sed -i 's|server.document-root = "/var/www/html"|server.document-root = "/usr/src/lada-server/target/site/apidocs"|' /etc/lighttpd/lighttpd.conf + +## Start the webserver manually, when the container is started +# service lighttpd start + # # This will boot WildFly in the standalone mode and bind to all interface # CMD ["/opt/jboss/wildfly/bin/standalone.sh", "-b", "0.0.0.0", \ "-bmanagement=0.0.0.0"] +