Skip to content

Commit 2b56b3a

Browse files
committed
chore: update Docker commands and installation process in documentation and Dockerfiles
- Changed `docker-compose` to `docker compose` in contributing guide and dev-cli script for consistency with Docker's new command structure - Updated README to differentiate between development and production Docker commands - Modified Dockerfiles for CMS and web apps to skip git hooks during dependency installation for improved build performance
1 parent 1e546cc commit 2b56b3a

File tree

5 files changed

+14
-10
lines changed

5 files changed

+14
-10
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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

apps/cms/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ COPY apps/cms/package.json ./apps/cms/
1111
COPY apps/web/package.json ./apps/web/
1212
COPY 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
1818
COPY apps/cms ./apps/cms
@@ -25,7 +25,7 @@ RUN pnpm --filter @acme/ui build
2525
RUN pnpm --filter cms build
2626

2727
# Production stage
28-
FROM node:18-alpine AS production
28+
FROM node:22-alpine AS production
2929

3030
RUN npm install -g pnpm
3131
WORKDIR /app
@@ -38,8 +38,8 @@ COPY apps/cms/package.json ./apps/cms/
3838
COPY apps/web/package.json ./apps/web/
3939
COPY 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
4545
COPY --from=base /app/apps/cms/.next ./apps/cms/.next

apps/web/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ RUN corepack enable pnpm
44
FROM base AS development-dependencies-env
55
COPY . /app
66
WORKDIR /app
7-
RUN pnpm install --frozen-lockfile
7+
RUN pnpm install --frozen-lockfile --ignore-scripts
88

99
FROM base AS production-dependencies-env
1010
COPY ./package.json pnpm-lock.yaml /app/
1111
WORKDIR /app
12-
RUN pnpm install --frozen-lockfile --prod
12+
RUN pnpm install --frozen-lockfile --ignore-scripts --prod
1313

1414
FROM base AS build-env
1515
COPY . /app/

scripts/dev-cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
},

0 commit comments

Comments
 (0)