mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 13:11:02 +00:00
build: invert dockerignore
With the normal dockerignore it regularly happens that unwanted files end up in the image. By denying everything and then allowing the desired files we have a more verbose dockerignore, but the context is as small as possible.
This commit is contained in:
parent
e4f775ca87
commit
9f171e5c75
1 changed files with 19 additions and 5 deletions
|
|
@ -1,7 +1,21 @@
|
||||||
node_modules/
|
# Ignore all and then selectivly allow
|
||||||
dist/
|
**/*
|
||||||
|
|
||||||
frontend/node_modules/
|
# api
|
||||||
frontend/src/tailwind/tailwind.generated.css
|
!package.json
|
||||||
|
!package-lock.json
|
||||||
|
!nest-cli.json
|
||||||
|
!tsconfig.build.json
|
||||||
|
!tsconfig.json
|
||||||
|
|
||||||
charts/
|
!src/**/*
|
||||||
|
|
||||||
|
# frontend
|
||||||
|
!frontend/.env.production
|
||||||
|
!frontend/package.json
|
||||||
|
!frontend/package-lock.json
|
||||||
|
!frontend/postcss.config.js
|
||||||
|
!frontend/tailwind.config.js
|
||||||
|
!frontend/tsconfig.json
|
||||||
|
!frontend/src/**/*
|
||||||
|
!frontend/public/**/*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue