From c4a130d993b59ab966a98fd65beab156d1cdd88c Mon Sep 17 00:00:00 2001 From: Brandon Clayton <bclayton@usgs.gov> Date: Mon, 22 Mar 2021 14:51:31 -0600 Subject: [PATCH] fix dockerfile --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index acf6871..e0836b3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -50,9 +50,6 @@ FROM ${FROM_IMAGE} # The NetCDF file to read in ARG netcdf_file="src/main/resources/default.nc" -# The NetCDF file to read in -ARG netcdf_file="src/main/resources/default.nc" - # The NSHM to use # Available NSHM to run: # - CONUS_2018A @@ -67,7 +64,9 @@ ARG workdir ENV PROJECT ${project} ENV NETCDF_FILE ${netcdf_file} -COPY ${NETCDF_FILE} ${NETCDF_FILE} +WORKDIR ${workdir} + +COPY --from=builder ${jar_file} ${project}.jar ENTRYPOINT /usr/bin/java -jar ${PROJECT}.jar \ "-Dmicronaut.server.context-path=${CONTEXT_PATH}" \ -- GitLab