Skip to content

Commit 2177e38

Browse files
authored
Update faq.md: .dockerignore
1 parent e8e287f commit 2177e38

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/faq.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ services:
152152
```
153153

154154
### The build aborted with an out-of-memory error
155-
You can increase the memory available to the build process by adding a field `shm_size` to the `build` section in your `compose.yaml` file:
155+
The image build might fail if the build process uses too much memory. The first thing to try is to limit the size of your project by excluding unnecessary files: the easiest way is to create a `.dockerignore` file that excludes irrelevatn files. Note that Defang will use a default `.dockerignore` file if you don't have one, but that default might not work for some projects and it's always better to make a `.dockerignore` file specific to your project.
156+
157+
If that doesn't work, you can try to increase the memory available to the build process by adding a field `shm_size` to the `build` section in your `compose.yaml` file:
156158

157159
```yaml
158160
services:

0 commit comments

Comments
 (0)