From df7325a58cc00dce40abdf03f8475fc76e1f84d7 Mon Sep 17 00:00:00 2001 From: Woodson Gates <43043100+faultoverload@users.noreply.github.com> Date: Mon, 12 Aug 2024 10:56:42 -0400 Subject: [PATCH] Update Dockerfile Co-authored-by: Robert Dyer --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c42215f..78ffa20 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,11 +8,10 @@ WORKDIR /usr/src/app RUN mkdir -p ./cache # Copy the current directory contents into the container at /usr/src/app -COPY . . +COPY .env *.js *.credentials package.json README.md LICENSE . # Install any needed packages specified in package.json -RUN npm install -RUN npm update +RUN npm install && npm update # Define environment variable ENV NODE_ENV=production