document pre-docker build command (#2164)

Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
This commit is contained in:
Michael Jensen 2021-09-27 01:01:41 -06:00 committed by GitHub
parent b86645fbe5
commit 88a1619dd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 1 deletions

View file

@ -0,0 +1,22 @@
---
title: 'Tutorials | Docker Build'
---
## Building your own Docker image
You'll need to retrieve the git submodules prior to building your own Docker image. From within your copy of the git repo run the following to retrieve the submodules and build the Docker image:
```sh
git submodule update --init --recursive
docker build .
```
Or, you can clone and retrieve the submodules in one command:
```sh
git clone --recurse-submodules https://github.com/docker-mailserver/docker-mailserver
```
Retrieving the git submodules will fix the error:
```
COPY failed: file not found in build context or excluded by .dockerignore: stat target/docker-configomat/configomat.sh: file does not exist
```

View file

@ -146,7 +146,8 @@ nav:
- 'Examples':
- 'Tutorials':
- 'Basic Installation': examples/tutorials/basic-installation.md
- 'Mail-Server behind a Proxy': examples/tutorials/mailserver-behind-proxy.md
- 'Mailserver behind Proxy': examples/tutorials/mailserver-behind-proxy.md
- 'Building your own Docker image': examples/tutorials/docker-build.md
- 'Blog Posts': examples/tutorials/blog-posts.md
- 'Use Cases':
- 'Forward-Only Mail-Server with LDAP': examples/uses-cases/forward-only-mailserver-with-ldap-authentication.md