Skip to content

Commit a8e8e79

Browse files
committed
update dockerignore
1 parent c0d6a15 commit a8e8e79

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.dockerignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
node_modules
33
.pnpm-store
44

5-
# next.js
6-
.next
7-
out
5+
# ignore everything in .next except standalone + static
6+
.next/*
7+
!.next/standalone
8+
!.next/static
89

910
# payload
1011
uploads

docker-compose.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ services:
1818
- PNPM_STORE_DIR=/home/node/.pnpm-store
1919
- APP_CMD=${APP_CMD}
2020
# - NODE_OPTIONS="--max-old-space-size=4096"
21-
command: sh -c "pnpm ${APP_CMD}"
21+
# for dev
22+
# command: sh -c "pnpm ${APP_CMD}"
23+
# for product
24+
command: sh -c "pnpm build && pnpm start"
2225
working_dir: /app
2326
depends_on:
2427
- postgres

0 commit comments

Comments
 (0)