.dockerignore 白名單 - jenhaoyang/backend_blog GitHub Wiki

# In .dockerignore
# Exclude everything:
#
*

# Now un-exclude package.json and the app folder:
#
!app
!LICENSE
!package.json

參考:
https://youknowfordevs.com/2018/12/07/getting-control-of-your-dockerignore-files.html