From 6538013dddb5a072309cd35f2960cd4e28bf8b0d Mon Sep 17 00:00:00 2001 From: Gavin McDonald Date: Sat, 19 Apr 2025 17:58:54 -0400 Subject: [PATCH] run production build in container --- Dockerfile | 6 ++++-- lib/GameStore.ts | 2 +- package.json | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ed66148..938f486 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,11 +5,13 @@ WORKDIR /app # Copy and install dependencies COPY package*.json ./ -RUN npm install +RUN npm ci # Copy the rest of the app COPY . . +RUN npm run build + EXPOSE 3000 -CMD ["npm", "run", "dev"] +CMD ["npm", "run", "start"] diff --git a/lib/GameStore.ts b/lib/GameStore.ts index f982779..c696096 100644 --- a/lib/GameStore.ts +++ b/lib/GameStore.ts @@ -46,7 +46,7 @@ export default class GameStore { positionFront: true, prophecy: true, notes: true, - cardStyle: 'standard', + cardStyle: 'color', }, }; diff --git a/package.json b/package.json index e73ba2a..bae79a7 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "dev": "nodemon", "build": "next build && tsc --project tsconfig.server.json", "start": "cross-env NODE_ENV=production TS_NODE_BASEURL=./build node -r tsconfig-paths/register build/server.js" + "deploy": "docker buildx build --platform linux/amd64 -t nasty.mcmorgans:5000/tarokka:latest --push ." }, "dependencies": { "cross-env": "^7.0.3",