1
0

Dockerfile 391 B

1234567891011121314151617181920
  1. FROM node:16
  2. # make the 'app' folder the current working directory
  3. WORKDIR /usr/src/app
  4. # copy 'package.json' to install dependencies
  5. COPY package*.json ./
  6. # install dependencies
  7. RUN yarn install
  8. # copy files and folders to the current working directory (i.e. 'app' folder)
  9. COPY . .
  10. # build app for production with minification
  11. # RUN npm run serve
  12. EXPOSE 8080
  13. CMD [ "yarn", "serve" ]