Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
-- undo npm produciton flag
  • Loading branch information
mike-moede committed Nov 18, 2019
commit 82f20c1e94e7324be547a9e05b52980e3b3d53c0
6 changes: 3 additions & 3 deletions src/v2/cookbook/dockerize-vuejs-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ WORKDIR /app
# copy both 'package.json' and 'package-lock.json' (if available)
COPY package*.json ./

# install project dependencies leaving out dev dependencies
RUN npm install --production
# install project dependencies
RUN npm install

# copy project files and folders to the current working directory (i.e. 'app' folder)
COPY . .
Expand Down Expand Up @@ -66,7 +66,7 @@ Let's refactor our `Dockerfile` to use NGINX:
FROM node:lts-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install --production
RUN npm install
COPY . .
RUN npm run build

Expand Down