Dockerfile 365 B

123456789101112131415161718192021222324252627
  1. FROM node:10-alpine
  2. RUN apk --no-cache add make
  3. WORKDIR /app
  4. COPY ./db/package.json ./db/package.json
  5. WORKDIR /app/db
  6. RUN npm install
  7. WORKDIR /app
  8. COPY ./web/package.json ./web/package.json
  9. WORKDIR /app/web
  10. RUN npm install
  11. WORKDIR /app
  12. COPY ./db ./db
  13. COPY ./web ./web
  14. COPY ./Makefile ./Makefile
  15. RUN make build_web
  16. WORKDIR /app/web
  17. EXPOSE 3000
  18. CMD npm start