From ba17eba7d76109ffb22263c68b07acc2d7278e11 Mon Sep 17 00:00:00 2001 From: Vildravn Date: Tue, 22 Oct 2019 21:34:47 +0200 Subject: [PATCH] Fix npm install in Dockerfile to only install production packages --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c3ed15fd..0abd59fe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,11 +10,11 @@ COPY . . # Change directory to src/server/ WORKDIR /usr/src/isleward/src/server/ -# Install npm modules specified in package.json -RUN npm install --only-production +# Install only production npm modules specified in package.json +RUN npm install --only=production # Expose container's port 4000 EXPOSE 4000 # Launch Isleward server -CMD ["node", "index.js"] \ No newline at end of file +CMD ["node", "index.js"]