mirror of
https://github.com/TheRealOwenRees/chess-scribe-website.git
synced 2026-07-23 01:46:57 +00:00
Import study link (#1)
* add bug to todo * disabled import study button if no study ID is selected, but always show if logged in as not to break the layout * basic import of lichess study link * change interface import * Minmax M3 solution to import study chapter/game functionality * change button text * fix toast to display on study and chapter load * add lint and format fix scripts * apply auto formatting * update ignored directories * fix specificity * add rudimentary PDF count metrics * allow docker build * create maintenance mode banner, triggered by env variables
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
# --- Stage 1: Build Stage ---
|
||||
FROM node:24-alpine AS builder
|
||||
WORKDIR /app
|
||||
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
|
||||
RUN corepack enable pnpm && pnpm i --frozen-lockfile
|
||||
COPY . .
|
||||
RUN pnpm run build
|
||||
|
||||
# --- Stage 2: Production Stage ---
|
||||
FROM node:24-alpine AS runner
|
||||
WORKDIR /app
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV PORT=3000
|
||||
ENV HOST=0.0.0.0
|
||||
|
||||
# Nitro compiles everything needed into the .output directory
|
||||
COPY --from=builder /app/.output ./.output
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
# Run the compiled Nitro server
|
||||
CMD ["node", ".output/server/index.mjs"]
|
||||
Reference in New Issue
Block a user