File tree Expand file tree Collapse file tree 5 files changed +14
-10
lines changed Expand file tree Collapse file tree 5 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ Thank you for your interest in contributing to Overland Stack! This document pro
3737
3838 ``` bash
3939 # Using Docker (recommended)
40- docker- compose -f docker-compose.dev.yml up -d
40+ docker compose -f docker-compose.dev.yml up -d
4141
4242 # Or locally
4343 pnpm dev
Original file line number Diff line number Diff line change @@ -151,7 +151,11 @@ pnpm build
151151### Docker
152152
153153``` bash
154- docker-compose up -d
154+ # Development environment
155+ docker compose -f docker-compose.dev.yml --profile development up -d
156+
157+ # Production environment
158+ docker compose up -d
155159```
156160
157161### Environment Variables
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ COPY apps/cms/package.json ./apps/cms/
1111COPY apps/web/package.json ./apps/web/
1212COPY packages/ui/package.json ./packages/ui/
1313
14- # Install all dependencies
15- RUN pnpm install --frozen-lockfile
14+ # Install all dependencies (skip git hooks in Docker)
15+ RUN pnpm install --frozen-lockfile --ignore-scripts
1616
1717# Copy source code
1818COPY apps/cms ./apps/cms
@@ -25,7 +25,7 @@ RUN pnpm --filter @acme/ui build
2525RUN pnpm --filter cms build
2626
2727# Production stage
28- FROM node:18 -alpine AS production
28+ FROM node:22 -alpine AS production
2929
3030RUN npm install -g pnpm
3131WORKDIR /app
@@ -38,8 +38,8 @@ COPY apps/cms/package.json ./apps/cms/
3838COPY apps/web/package.json ./apps/web/
3939COPY packages/ui/package.json ./packages/ui/
4040
41- # Install production dependencies only
42- RUN pnpm install --frozen-lockfile --prod
41+ # Install production dependencies only (skip git hooks in Docker)
42+ RUN pnpm install --frozen-lockfile --prod --ignore-scripts
4343
4444# Copy built application from base stage
4545COPY --from=base /app/apps/cms/.next ./apps/cms/.next
Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ RUN corepack enable pnpm
44FROM base AS development-dependencies-env
55COPY . /app
66WORKDIR /app
7- RUN pnpm install --frozen-lockfile
7+ RUN pnpm install --frozen-lockfile --ignore-scripts
88
99FROM base AS production-dependencies-env
1010COPY ./package.json pnpm-lock.yaml /app/
1111WORKDIR /app
12- RUN pnpm install --frozen-lockfile --prod
12+ RUN pnpm install --frozen-lockfile --ignore-scripts -- prod
1313
1414FROM base AS build-env
1515COPY . /app/
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ const commands = {
104104 description : 'Start Docker development environment' ,
105105 action : ( ) => {
106106 console . log ( '🐳 Starting Docker development environment...' ) ;
107- execSync ( 'docker- compose -f docker-compose.dev.yml up -d' , {
107+ execSync ( 'docker compose -f docker-compose.dev.yml up -d' , {
108108 stdio : 'inherit' ,
109109 } ) ;
110110 } ,
You can’t perform that action at this time.
0 commit comments