First pass

This commit is contained in:
2025-12-25 22:10:06 -07:00
parent a2af6195f9
commit 455c3dbd9a
58 changed files with 10299 additions and 3 deletions

29
Dockerfile Normal file
View File

@@ -0,0 +1,29 @@
FROM node:lts-alpine AS builder
WORKDIR /app
RUN npm i -g pnpm
RUN apk add --no-cache python3 make g++
COPY package.json pnpm-lock.yaml ./
RUN pnpm install
COPY . .
RUN pnpm run build
FROM node:lts-alpine AS runtime
WORKDIR /app
RUN npm i -g pnpm
COPY --from=builder /app/dist ./dist
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --prod
ENV HOST=0.0.0.0
ENV PORT=4321
ENV DATABASE_URL=zamaan.db
EXPOSE 4321
CMD ["node", "./dist/server/entry.mjs"]