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.

28 lines
589 B

3 years ago
3 years ago
3 years ago
  1. FROM node:14.5.0-alpine
  2. # create destination directory
  3. WORKDIR /usr/src
  4. # update and install dependency
  5. RUN apk update && apk upgrade
  6. RUN apk add git
  7. # copy the app, note .dockerignore
  8. RUN git clone --depth 1 https://gitea.flylocal.us/spencer/test-02.git
  9. WORKDIR /usr/src/test-02
  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 5000 on container
  15. EXPOSE 5000
  16. # set app serving to permissive / assigned
  17. ENV NUXT_HOST=0.0.0.0
  18. # set app port
  19. ENV NUXT_PORT=5000
  20. # start the app
  21. CMD [ "yarn", "start" ]