We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a031e11 commit 39a7ad2Copy full SHA for 39a7ad2
src/v2/cookbook/dockerize-vuejs-app.md
@@ -22,8 +22,8 @@ WORKDIR /app
22
# copy both 'package.json' and 'package-lock.json' (if available)
23
COPY package*.json ./
24
25
-# install project dependencies
26
-RUN npm install
+# install project dependencies leaving out dev dependencies
+RUN npm install --production
27
28
# copy project files and folders to the current working directory (i.e. 'app' folder)
29
COPY . .
@@ -66,7 +66,7 @@ Let's refactor our `Dockerfile` to use NGINX:
66
FROM node:lts-alpine as build-stage
67
WORKDIR /app
68
69
70
71
RUN npm run build
72
0 commit comments