Browse Source

Fix docker build

maziggy 5 months ago
parent
commit
9ba4ef6355
3 changed files with 19 additions and 5 deletions
  1. 1 4
      Dockerfile
  2. 16 0
      README.md
  3. 2 1
      frontend/tsconfig.app.json

+ 1 - 4
Dockerfile

@@ -3,11 +3,8 @@ FROM node:22-bookworm-slim AS frontend-builder
 
 
 WORKDIR /app/frontend
 WORKDIR /app/frontend
 
 
-# Copy package files and install dependencies as node user to avoid permission issues
-COPY --chown=node:node frontend/package*.json ./
-USER node
+COPY frontend/package*.json ./
 RUN npm ci
 RUN npm ci
-USER root
 
 
 COPY frontend/ ./
 COPY frontend/ ./
 RUN npm run build
 RUN npm run build

+ 16 - 0
README.md

@@ -206,6 +206,22 @@
 
 
 ### Installation
 ### Installation
 
 
+#### Docker (Recommended)
+
+```bash
+git clone https://github.com/maziggy/bambuddy.git
+cd bambuddy
+docker compose up -d
+```
+
+To update or rebuild after pulling changes:
+```bash
+git pull
+docker compose up --build -d
+```
+
+#### Manual Installation
+
 ```bash
 ```bash
 # Clone and setup
 # Clone and setup
 git clone https://github.com/maziggy/bambuddy.git
 git clone https://github.com/maziggy/bambuddy.git

+ 2 - 1
frontend/tsconfig.app.json

@@ -24,5 +24,6 @@
     "noFallthroughCasesInSwitch": true,
     "noFallthroughCasesInSwitch": true,
     "noUncheckedSideEffectImports": true
     "noUncheckedSideEffectImports": true
   },
   },
-  "include": ["src"]
+  "include": ["src"],
+  "exclude": ["src/__tests__"]
 }
 }