mirror of
https://origin.cursor.com/mrdevmx/panels.git
synced 2026-10-09 11:23:18 +00:00
14 lines
484 B
Docker
14 lines
484 B
Docker
# PANELS (obra) — Nuxt SPA → nginx Alpine
|
|
FROM node:22-alpine AS build
|
|
WORKDIR /app
|
|
COPY web-panel/package.json web-panel/package-lock.json ./
|
|
RUN npm install --no-audit --no-fund
|
|
COPY web-panel/ ./
|
|
RUN npm run generate
|
|
|
|
FROM nginx:1.27-alpine
|
|
COPY web-panel/nginx.conf /etc/nginx/conf.d/default.conf
|
|
COPY --from=build /app/.output/public /usr/share/nginx/html
|
|
EXPOSE 80
|
|
HEALTHCHECK --interval=30s --timeout=3s --retries=3 \
|
|
CMD wget -qO- http://127.0.0.1/ >/dev/null || exit 1
|