From a663c061e24fa42f962423cdc4a9f25ce92dcb5d Mon Sep 17 00:00:00 2001 From: Emmanuel Rojas Date: Fri, 18 Sep 2026 00:48:53 -0500 Subject: [PATCH] fix --- .dockerignore | 22 ---------------------- Dockerfile | 46 ---------------------------------------------- docker-compose.yml | 14 -------------- 3 files changed, 82 deletions(-) delete mode 100644 .dockerignore delete mode 100644 Dockerfile delete mode 100644 docker-compose.yml diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index c4b2977..0000000 --- a/.dockerignore +++ /dev/null @@ -1,22 +0,0 @@ -node_modules -.next -out -npm-debug.log* - -.git -.gitignore -.github - -.env -.env.* -!.env.example - -.vscode -.idea -.DS_Store - -Dockerfile -docker-compose.yml -.dockerignore - -README.md diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 8a2bd33..0000000 --- a/Dockerfile +++ /dev/null @@ -1,46 +0,0 @@ -# syntax=docker/dockerfile:1 - -FROM node:22-alpine AS base - -# ---------- Dependencias ---------- -FROM base AS deps -WORKDIR /app -COPY package.json package-lock.json ./ -RUN npm ci - -# ---------- Build (SSR) ---------- -FROM base AS builder -WORKDIR /app -COPY --from=deps /app/node_modules ./node_modules -COPY . . - -# Las variables NEXT_PUBLIC_* se incrustan en el bundle durante el build, -# por lo que deben estar disponibles ANTES de "npm run build". -ARG NEXT_PUBLIC_API_URL=https://control-api.rynext.com.mx -ENV NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL} -ENV NEXT_TELEMETRY_DISABLED=1 - -RUN npm run build - -# ---------- Runtime ---------- -FROM base AS runner -WORKDIR /app - -ENV NODE_ENV=production -ENV NEXT_TELEMETRY_DISABLED=1 -ENV PORT=3000 -ENV HOSTNAME=0.0.0.0 - -RUN addgroup --system --gid 1001 nodejs \ - && adduser --system --uid 1001 nextjs - -# output: 'standalone' genera un servidor Node autocontenido en .next/standalone -COPY --from=builder /app/public ./public -COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ -COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static - -USER nextjs - -EXPOSE 3000 - -CMD ["node", "server.js"] diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 92410cd..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,14 +0,0 @@ -services: - web: - build: - context: . - dockerfile: Dockerfile - args: - NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-https://control-api.rynext.com.mx} - image: rynext-landing:latest - container_name: rynext-landing - restart: unless-stopped - ports: - - "3000:3000" - environment: - NODE_ENV: production