Apache Nutch is an extensible and scalable web crawler
NUTCH-2883 Provide means to run server and webapp as persistent services in Docker container - move ARG instructions into FROM block they're used in (duplicate if necessary)
Sebastian Nagel0bda1bded2ba
diff --git a/docker/Dockerfile b/docker/Dockerfileindex 7070ed170..d58b583e6 100644--- a/docker/Dockerfile+++ b/docker/Dockerfile@@ -67,6 +67,8 @@ RUN echo "Nutch master branch source install with 'crawl' and 'nutch' scripts onFROM base AS branch-version-1RUN echo "Nutch master branch source install with 'crawl' and 'nutch' scripts on PATH and Nutch REST Server on $SERVER_HOST:$SERVER_PORT"+ARG SERVER_PORT=8081+ARG SERVER_HOST=0.0.0.0ENV SERVER_PORT=$SERVER_PORTENV SERVER_HOST=$SERVER_HOST@@ -84,6 +86,9 @@ ENTRYPOINT [ "supervisord", "--nodaemon", "--configuration", "/etc/supervisord.cFROM base AS branch-version-2RUN echo "Nutch master branch source install with 'crawl' and 'nutch' scripts on PATH, Nutch REST Server on $SERVER_HOST:$SERVER_PORT and WebApp on this container port $WEBAPP_PORT"+ARG SERVER_PORT=8081+ARG SERVER_HOST=0.0.0.0+ARG WEBAPP_PORT=8080ENV SERVER_PORT=$SERVER_PORTENV SERVER_HOST=$SERVER_HOST