Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

1234567891011121314151617181920
  1. FROM node:16 AS builder
  2. WORKDIR /app
  3. # Copy all files from current directory to working dir in image
  4. COPY package*.json /app/
  5. RUN npm install
  6. COPY ./ /app/
  7. ENV REACT_APP_BASE_API_URL="https://trampa-api-test.dilig.net/"
  8. RUN npm run build
  9. FROM nginx:alpine
  10. WORKDIR /usr/share/nginx/html
  11. RUN rm -rf ./*
  12. COPY --from=builder /app/build .
  13. COPY nginx.conf /etc/nginx/conf.d/default.conf
  14. # Containers run nginx with global directives and daemon off
  15. ENTRYPOINT ["nginx", "-g", "daemon off;"]