- Updated .dockerignore to ignore everything by default while allowing necessary files and directories for the Docker build. - Enhanced Dockerfile to utilize caching for pnpm installation and Turbo build process, improving build performance and efficiency.
18 lines
287 B
Plaintext
18 lines
287 B
Plaintext
# Ignore everything by default
|
|
*
|
|
|
|
# Allow only what the Dockerfile needs
|
|
!package.json
|
|
!pnpm-lock.yaml
|
|
!pnpm-workspace.yaml
|
|
!turbo.json
|
|
!.npmrc
|
|
!apps/web/
|
|
!packages/
|
|
|
|
# Re-exclude build artifacts that snuck in
|
|
apps/web/.next
|
|
apps/web/node_modules
|
|
packages/*/node_modules
|
|
packages/*/dist
|