Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

12345678910111213
  1. FROM node:16.19.0-alpine as build
  2. WORKDIR /app
  3. COPY package.json ./
  4. COPY yarn.lock ./
  5. RUN yarn
  6. COPY . .
  7. RUN yarn build
  8. # production environment
  9. FROM nginx:stable-alpine
  10. COPY --from=build /app/build /usr/share/nginx/html
  11. COPY --from=build /app/nginx.conf /etc/nginx/conf.d/default.conf
  12. EXPOSE 80
  13. CMD ["nginx", "-g", "daemon off;"]