Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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