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
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
FROM node:20-alpine
FROM node:22-alpine

# Install nginx and pnpm
RUN apk add --no-cache nginx
RUN npm install -g pnpm
RUN npm install -g pnpm@11.25.0

WORKDIR /app

# Production behavior: enables the Secure cookie flag and the JWT_SECRET boot check
ENV NODE_ENV=production

# Copy workspace files
COPY package.json pnpm-workspace.yaml ./
COPY package.json pnpm-workspace.yaml pnpm-lock.yaml ./
COPY server/package.json ./server/
COPY client/package.json ./client/

# Install all dependencies
RUN pnpm install
RUN pnpm install --frozen-lockfile

# Copy source
COPY server/ ./server/
Expand Down
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"preinstall": "npx only-allow pnpm",
"preinstall": "npx --yes only-allow pnpm",
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"private": true,
"scripts": {
"preinstall": "pnpm exec only-allow pnpm",
"preinstall": "npx --yes only-allow pnpm",
"dev": "concurrently --names \"SERVER,CLIENT\" -c \"blue,red\" \"pnpm --filter server dev\" \"pnpm --filter client dev\"",
"build": "pnpm --filter server build && pnpm --filter client build",
"start": "node server/dist/server.js",
Expand Down
2 changes: 2 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ packages:
- "client"
onlyBuiltDependencies:
- esbuild
allowBuilds:
esbuild: true
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "",
"main": "index.js",
"scripts": {
"preinstall": "npx only-allow pnpm",
"preinstall": "npx --yes only-allow pnpm",
"dev": "tsx watch server.ts",
"build": "tsc",
"start": "node dist/server.js",
Expand Down
Loading