mirror of https://github.com/knative/docs.git
19 lines
353 B
Docker
19 lines
353 B
Docker
FROM node:16-slim
|
|
|
|
# Create app directory
|
|
WORKDIR /usr/src/app
|
|
|
|
# Install app dependencies
|
|
# A wildcard is used to ensure both package.json AND package-lock.json
|
|
COPY package*.json ./
|
|
|
|
RUN npm install
|
|
# If you are building your code for production
|
|
# RUN npm ci --only=production
|
|
|
|
# Bundle app source
|
|
COPY index.js ./
|
|
|
|
EXPOSE 8080
|
|
CMD [ "npm", "start" ]
|