Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile.api
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ COPY packages/macgamingdb-emails/package.json packages/macgamingdb-emails/
COPY packages/macgamingdb-ui/package.json packages/macgamingdb-ui/
RUN bun install --frozen-lockfile

FROM node:22-slim AS build
FROM node:26.12.1-slim AS build
WORKDIR /app
COPY --from=deps /app ./
COPY packages ./packages
RUN node node_modules/typescript/bin/tsc -p packages/macgamingdb-shared/tsconfig.json \
&& node node_modules/typescript/bin/tsc -p packages/macgamingdb-emails/tsconfig.build.json \
&& node node_modules/typescript/bin/tsc -p packages/macgamingdb-server/tsconfig.build.json

FROM node:22-slim AS runner
FROM node:26.12.1-slim AS runner
WORKDIR /app
ENV NODE_ENV=production
COPY --from=build /app/node_modules ./node_modules
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.web
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ COPY packages/macgamingdb-emails/package.json packages/macgamingdb-emails/
COPY packages/macgamingdb-ui/package.json packages/macgamingdb-ui/
RUN bun install --frozen-lockfile

FROM node:22-slim AS builder
FROM node:26.12.1-slim AS builder
WORKDIR /app
COPY --from=deps /app ./
COPY . .
Expand All @@ -18,7 +18,7 @@ RUN node node_modules/typescript/bin/tsc -p packages/macgamingdb-shared/tsconfig
&& node node_modules/typescript/bin/tsc -p packages/macgamingdb-emails/tsconfig.build.json \
&& node node_modules/vinext/dist/cli.js build

FROM node:22-slim AS runner
FROM node:26.12.1-slim AS runner
WORKDIR /app
ENV NODE_ENV=production
ENV HOST=0.0.0.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ Edit `packages/macgamingdb-server/src/database/schema.ts`, then `bun run db:gene

## Deployment

Coolify runs `docker-compose.yml` from this repo: an internal-only `api` service (`Dockerfile.api`) and the public `web` service (`Dockerfile.web`), both on `node:22-slim`. The api container self-migrates on boot and refuses to serve if validation fails. Push to `master` → Coolify builds and deploys both.
Coolify runs `docker-compose.yml` from this repo: an internal-only `api` service (`Dockerfile.api`) and the public `web` service (`Dockerfile.web`), both on `node:26.12.1-slim`. The api container self-migrates on boot and refuses to serve if validation fails. Push to `master` → Coolify builds and deploys both.
Loading