Skip to content

Commit bbc7aa8

Browse files
committed
local docker file
1 parent 37c041e commit bbc7aa8

File tree

3 files changed

+16
-27
lines changed

3 files changed

+16
-27
lines changed

samples/repo-base/.dockerignore

Lines changed: 0 additions & 27 deletions
This file was deleted.

samples/repo-base/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM node:20-alpine
2+
3+
WORKDIR /app
4+
5+
# Install dependencies based on the preferred package manager
6+
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* .npmrc* ./
7+
8+
RUN corepack enable pnpm && pnpm install --frozen-lockfile --prefer-offline
9+
10+
COPY src ./src
11+
COPY public ./public
12+
COPY next.config.ts .
13+
COPY tsconfig.json .
14+
15+
RUN pnpm run build

samples/repo-base/compose.dev.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ services:
1313
restart: always
1414
ports:
1515
- 3000:3000
16+
command: ["pnpm", "run", "start"]
1617

1718
database:
1819
image: postgres:16

0 commit comments

Comments
 (0)