Listory/.dockerignore
Julian Tölle 9f171e5c75 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.
2023-04-03 22:12:53 +02:00

21 lines
357 B
Text

# Ignore all and then selectivly allow
**/*
# api
!package.json
!package-lock.json
!nest-cli.json
!tsconfig.build.json
!tsconfig.json
!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/**/*