made some changes to make the docker compose build work + added docker ignores to not copy non-essential files

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-27 15:03:45 -05:00
parent b4fd4ee8e6
commit fb8a06f11a
8 changed files with 43 additions and 11 deletions
+10
View File
@@ -0,0 +1,10 @@
node_modules/
dist/
build/
coverage/
*.log
*.env
.DS_Store
.vscode/
.idea/
.next/
+8 -2
View File
@@ -2,10 +2,16 @@ FROM oven/bun:latest
WORKDIR /app WORKDIR /app
COPY . . # Copy root manifest files and workspace packages needed for bun workspaces
COPY package.json ./
COPY apps ./apps
COPY packages ./packages
RUN bun install --frozen-lockfile # Install workspace dependencies from repo root
RUN bun install
# Build the client
WORKDIR /app/apps/client
RUN bun run build RUN bun run build
EXPOSE 3000 EXPOSE 3000
+1 -1
View File
@@ -38,7 +38,7 @@
"babel-plugin-react-compiler": "1.0.0", "babel-plugin-react-compiler": "1.0.0",
"tailwindcss": "^4", "tailwindcss": "^4",
"typescript": "^5", "typescript": "^5",
"@turborepo-starter-project/server": "*" "@turborepo-starter-project/server": "workspace:*"
}, },
"ignoreScripts": [ "ignoreScripts": [
"sharp", "sharp",
+9
View File
@@ -0,0 +1,9 @@
node_modules/
dist/
build/
coverage/
*.log
*.env
.DS_Store
.vscode/
.idea/
+9 -2
View File
@@ -2,9 +2,16 @@ FROM oven/bun:latest
WORKDIR /app WORKDIR /app
COPY . . # Copy root manifest files and workspace packages so bun can resolve workspaces
COPY package.json ./
COPY apps ./apps
COPY packages ./packages
RUN bun install --frozen-lockfile # Install workspace dependencies from repo root
RUN bun install
# Run server from its app folder
WORKDIR /app/apps/server
EXPOSE 3000 EXPOSE 3000
+1 -1
View File
@@ -39,7 +39,7 @@
"devDependencies": { "devDependencies": {
"@biomejs/biome": "2.2.0", "@biomejs/biome": "2.2.0",
"@tailwindcss/postcss": "^4", "@tailwindcss/postcss": "^4",
"@turborepo-starter-project/server": "*", "@turborepo-starter-project/server": "workspace:*",
"@types/node": "^20", "@types/node": "^20",
"@types/react": "^19", "@types/react": "^19",
"@types/react-dom": "^19", "@types/react-dom": "^19",
+4 -4
View File
@@ -1,8 +1,8 @@
services: services:
client: client:
build: build:
context: ./apps/client context: .
dockerfile: Dockerfile dockerfile: apps/client/Dockerfile
restart: unless-stopped restart: unless-stopped
ports: ports:
- 3000:3000 - 3000:3000
@@ -12,8 +12,8 @@ services:
- server - server
server: server:
build: build:
context: ./apps/server context: .
dockerfile: Dockerfile dockerfile: apps/server/Dockerfile
restart: unless-stopped restart: unless-stopped
ports: ports:
- 3000 - 3000