You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
553 B

  1. FROM node:14.5.0-alpine
  2. # create destination directory
  3. RUN mkdir -p /usr/src/kekkon
  4. WORKDIR /usr/src/kekkon
  5. # update and install dependency
  6. RUN apk update && apk upgrade
  7. RUN apk add git
  8. # copy the app, note .dockerignore
  9. COPY . /usr/src/kekkon/
  10. RUN yarn install
  11. # build necessary, even if no static files are needed,
  12. # since it builds the server as well
  13. RUN yarn build
  14. # expose 3000 on container
  15. EXPOSE 3000
  16. # set app serving to permissive / assigned
  17. ENV NUXT_HOST=0.0.0.0
  18. # set app port
  19. ENV NUXT_PORT=3000
  20. # start the app
  21. CMD [ "yarn", "start" ]