Dockerfile 385 B

123456789101112131415161718192021222324252627
  1. FROM node:14-alpine
  2. RUN apk --no-cache add make
  3. WORKDIR /app
  4. COPY ./shared/package.json ./shared/package.json
  5. WORKDIR /app/shared
  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 ./shared ./shared
  13. COPY ./web ./web
  14. COPY ./Makefile ./Makefile
  15. RUN make build_web
  16. WORKDIR /app/web
  17. EXPOSE 3000
  18. CMD npm start