Slide 5
Slide 5 text
レイヤーキャッシュ
.
├── Dockerfile
├── app.js
├── bin/
├── package.json
├── package-lock.json
├── public/
├── routes/
└── views/
# syntax=docker/dockerfile:1
FROM node:16
# Create app directory
WORKDIR /usr/src/app
# Install app dependencies
# copy package.json AND package-lock.json
COPY package*.json ./
RUN npm install
# Bundle app source
COPY . .
EXPOSE 8080
CMD [ "node", "server.js" ]