/
45case
/
ptable
Обзор
Документация
Войти
/
45case
/
ptable
Код
Запросы
3
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
dev
Dockerfile
42 строки
720 B
Olya
first_commit
06 июл 2026, 18:16
06 июл 2026, 18:16
0ff6e29
Код
Авторство
О чём код?
FROM node:22-alpine AS build WORKDIR /app COPY package.json package-lock.json ./ RUN npm ci --include=dev COPY . . RUN npm run check && npm run build FROM nginx:1.27-alpine AS runtime ENV NODE_ENV=production RUN cat <<'EOF' > /etc/nginx/conf.d/default.conf server { listen 80; server_name _; root /usr/share/nginx/html; index index.html; location / { try_files $uri $uri/ /index.html; } location = /health { access_log off; add_header Content-Type text/plain; return 200 "ok"; } } EOF COPY --from=build /app/dist /usr/share/nginx/html EXPOSE 80 HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 \ CMD wget -qO- http://127.0.0.1/ >/dev/null || exit 1