make Dockerfile populate datadir when empty

pull/2/head
Luca Pasquali 2021-03-12 13:16:50 +01:00
parent a20e46142f
commit d955cefaf6
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ COPY --from=mother "/output/datadir" "${GEOSERVER_DATA_DIR}"
COPY --from=mother "/output/webapp/geoserver" "${CATALINA_BASE}/webapps/geoserver"
COPY --from=mother "/output/plugins" "${CATALINA_BASE}/webapps/geoserver/WEB-INF/lib"
RUN if [ ! -f "${GEOSERVER_DATA_DIR}/logging.xml" ]; then cp -a ${CATALINA_BASE}/webapps/geoserver/data/* ${GEOSERVER_DATA_DIR};fi
WORKDIR "$CATALINA_BASE"