Initial commit: Spark Platform with Cartesian SEO Engine

This commit is contained in:
cawcenter
2025-12-11 23:21:35 -05:00
commit abd964a745
68 changed files with 7960 additions and 0 deletions

28
frontend/Dockerfile Normal file
View File

@@ -0,0 +1,28 @@
# ========= BASE =========
FROM node:20-alpine AS base
WORKDIR /app
# ========= DEPENDENCIES =========
FROM base AS deps
COPY package.json package-lock.json* ./
RUN npm ci
# ========= BUILD =========
FROM base AS builder
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN npm run build
# ========= RUNNER =========
FROM base AS runner
ENV NODE_ENV=production
ENV HOST=0.0.0.0
ENV PORT=4321
WORKDIR /app
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
COPY package.json .
EXPOSE 4321
CMD ["node", "./dist/server/entry.mjs"]