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:
@@ -0,0 +1,10 @@
|
|||||||
|
node_modules/
|
||||||
|
dist/
|
||||||
|
build/
|
||||||
|
coverage/
|
||||||
|
*.log
|
||||||
|
*.env
|
||||||
|
.DS_Store
|
||||||
|
.vscode/
|
||||||
|
.idea/
|
||||||
|
.next/
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
node_modules/
|
||||||
|
dist/
|
||||||
|
build/
|
||||||
|
coverage/
|
||||||
|
*.log
|
||||||
|
*.env
|
||||||
|
.DS_Store
|
||||||
|
.vscode/
|
||||||
|
.idea/
|
||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user