FROM node:20-alpine as build WORKDIR /app COPY frontend/package*.json ./ RUN npm install COPY frontend . RUN npm run build FROM nginx:alpine COPY --from=build /app/dist /usr/share/nginx/html COPY docker/frontend/nginx.conf /etc/nginx/conf.d/default.conf # Создаем директории для сертификатов RUN mkdir -p /etc/letsencrypt RUN mkdir -p /var/www/certbot EXPOSE 80 443 CMD ["nginx", "-g", "daemon off;"]