mirror of https://github.com/knative/docs.git
serving/samples/helloworld-nodejs: specifically require package.json (#956)
This commit is contained in:
parent
1d00eb5ce0
commit
f36f33e317
|
@ -8,7 +8,7 @@ WORKDIR /usr/src/app
|
||||||
# Copy application dependency manifests to the container image.
|
# Copy application dependency manifests to the container image.
|
||||||
# A wildcard is used to ensure both package.json AND package-lock.json are copied.
|
# 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.
|
# Copying this separately prevents re-running npm install on every code change.
|
||||||
COPY package*.json ./
|
COPY package.json package*.json ./
|
||||||
|
|
||||||
# Install production dependencies.
|
# Install production dependencies.
|
||||||
RUN npm install --only=production
|
RUN npm install --only=production
|
||||||
|
|
Loading…
Reference in New Issue