Dockerfile 376 B

123456789101112131415161718192021222324252627
  1. FROM node:16-alpine
  2. RUN apk --no-cache add make libc6-compat
  3. WORKDIR /app
  4. COPY ./shared/package*.json ./shared/
  5. WORKDIR /app/shared
  6. RUN npm install
  7. WORKDIR /app
  8. COPY ./web/package*.json ./web/
  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