setup project

This commit is contained in:
2026-04-04 13:35:33 -06:00
parent 3f75aead20
commit 27088c2cd8
48 changed files with 7831 additions and 2 deletions

18
site/site.Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
FROM docker.io/node:24-slim AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
COPY . /app
WORKDIR /app
FROM base AS deps
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile
FROM base AS build
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
RUN pnpm run build --configuration=production
FROM docker.io/nginx:1.29.7
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=deps /app/node_modules /usr/share/nginx/html
COPY --from=build /app/dist /usr/share/nginx/html