serving/samples/helloworld-nodejs: specifically require package.json (#956)

This commit is contained in:
Adam Ross 2019-03-06 11:28:41 -08:00 committed by Knative Prow Robot
parent 1d00eb5ce0
commit f36f33e317
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ WORKDIR /usr/src/app
# Copy application dependency manifests to the container image.
# A wildcard is used to ensure both package.json AND package-lock.json are copied.
# Copying this separately prevents re-running npm install on every code change.
COPY package*.json ./
COPY package.json package*.json ./
# Install production dependencies.
RUN npm install --only=production