Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

Dockerfile 488B

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;"]