Dockerfile 378 B

123456789101112131415161718192021222324
  1. FROM node:12.10.0-alpine
  2. LABEL maintainer="Liyas Thomas (liyascthomas@gmail.com)"
  3. # Add git as the prebuild target requires it to parse version information
  4. RUN apk add --update --no-cache \
  5. git
  6. # Create app directory
  7. WORKDIR /app
  8. ADD . /app/
  9. COPY package*.json ./
  10. RUN npm install
  11. COPY . .
  12. RUN npm run generate
  13. ENV HOST 0.0.0.0
  14. EXPOSE 3000
  15. CMD ["npm", "run", "start"]