> For the complete documentation index, see [llms.txt](https://geforce2003.gitbook.io/hims/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://geforce2003.gitbook.io/hims/azure-app-service/deploy-docker-on-appservice/get-test-done-before.../prepare-.dockerignore.md).

# Prepare .dockerignore

有沒有node\_module的檔案差異真的很大...

在稍早的文章有提到，要install, build才能夠讓SSR的Nuxt 3產出畫面

不過install的過程中會去pull node\_modules這個模組，但為了簡化docker image，這邊就需要把一些用不到的檔案給排除掉

特別是mac OS壓縮的檔案，都會有一個.DS\_Store的檔案，看了就很煩XD，所以也要排除掉

一樣在根目錄下建立一個檔案叫做.dockerignore，然後用VS Code去編輯它，如下圖

![Use VSCode create .dockerignore file](https://3638419469-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQPEaltBB6ZofvnpVIs%2Fuploads%2FRba6s4xdcP6YaCuOXcbF%2Fdocker_ignore.png?alt=media\&token=2eaebf64-a232-4e7b-b95e-44758eed3f1e)

然後裡面只就填寫你要忽略的檔案即可，如下面，排除掉nodemodules跟莫名的 .DS\_Store

```
**/node_modules
.DS_Store
```
