diff --git a/examples/with-docker/Dockerfile b/examples/with-docker/Dockerfile index aa4b329d5e39965..57635340bb16f2a 100644 --- a/examples/with-docker/Dockerfile +++ b/examples/with-docker/Dockerfile @@ -6,6 +6,10 @@ WORKDIR /app COPY package.json yarn.lock ./ RUN yarn install --frozen-lockfile +# If using npm with a `package-lock.json` comment out above and use below instead +# COPY package.json package-lock.json / +# RUN npm install + # Rebuild the source code only when needed FROM node:16-alpine AS builder WORKDIR /app