| 12345678910111213141516171819202122232425262728293031 |
- FROM node:10
- # Before modifying this file, please refer to:
- # https://github.com/nodejs/docker-node/blob/main/docs/BestPractices.md
- # Change the working directory to user source app directory
- # you should not mount to this directory, this is only to hold the build source files
- # see entrypoin.sh
- # it will copy the required source files to /app directory on run
- # this allows to mount a volume to /app when needed (mostly for development)
- WORKDIR /usr/src/app
- # Install VUE CLI
- # keeping run seperate so that it dsn't compile this layer for every build
- RUN npm install -g @vue/cli eslint
- COPY package*.json ./
- # Check VUE version and install package.json dependencies
- RUN vue --version && \
- npm install
- RUN mkdir -p /app && chown node:node /app
- WORKDIR /app
- COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint-proxy.sh
- RUN chmod +x /usr/local/bin/docker-entrypoint-proxy.sh
- USER node
- ENTRYPOINT ["docker-entrypoint-proxy.sh"]
|