Dockerfile 323 B

1234567891011121314151617
  1. FROM node:14-alpine AS builder
  2. WORKDIR /app
  3. COPY package.json yarn.lock ./
  4. RUN yarn
  5. COPY src ./src
  6. COPY public ./public
  7. COPY tsconfig.json .
  8. ENV REACT_APP_API_URL=http://localhost:3002
  9. RUN yarn build && rm -rf node_modules
  10. FROM nginx:alpine
  11. WORKDIR /app
  12. COPY nginx.conf /etc/nginx/nginx.conf
  13. COPY --from=0 /app/build .