fix(build): use multi-stage Dockerfile and add .dockerignore
- Change .woodpecker.yml to use Dockerfile (multi-stage) instead of Dockerfile.simple - Add .dockerignore to exclude node_modules and build artifacts - Reduces image size to avoid 413 Payload Too Large error
This commit is contained in:
parent
6f31fb06a5
commit
80fb6aa9b4
2 changed files with 29 additions and 1 deletions
28
.dockerignore
Normal file
28
.dockerignore
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
node_modules
|
||||||
|
.git
|
||||||
|
.gitignore
|
||||||
|
.env
|
||||||
|
.env.local
|
||||||
|
.env.*.local
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
.vscode
|
||||||
|
.idea
|
||||||
|
*.log
|
||||||
|
.DS_Store
|
||||||
|
.output
|
||||||
|
.vinxi
|
||||||
|
dist
|
||||||
|
*.tsbuildinfo
|
||||||
|
coverage
|
||||||
|
.nyc_output
|
||||||
|
.cache
|
||||||
|
.next
|
||||||
|
.vercel
|
||||||
|
netlify
|
||||||
|
*.test.ts
|
||||||
|
*.spec.ts
|
||||||
|
**/__tests__
|
||||||
|
**/test
|
||||||
|
**/tests
|
||||||
|
|
@ -8,7 +8,7 @@ steps:
|
||||||
settings:
|
settings:
|
||||||
registry: registry.nxtgauge.com
|
registry: registry.nxtgauge.com
|
||||||
repo: nxtgauge-frontend-solid
|
repo: nxtgauge-frontend-solid
|
||||||
dockerfile: Dockerfile.simple
|
dockerfile: Dockerfile
|
||||||
tags:
|
tags:
|
||||||
- ${CI_COMMIT_SHA}
|
- ${CI_COMMIT_SHA}
|
||||||
- latest
|
- latest
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue