mailcow-dockerized-docs/docs/manual-guides/Docker/u_e-docker-cust_dockerfiles.en.md

17 Zeilen
478 B
Markdown

You need to copy the override file with corresponding build tags to the mailcow: dockerized root folder (i.e. `/opt/mailcow-dockerized`):
```
2022-06-02 15:19:55 +02:00
cp helper-scripts/docker-compose.override.yml.d/BUILD_FLAGS/docker-compose.override.yml docker-compose.override.yml
```
Make your changes in `data/Dockerfiles/$service` and build the image locally:
```
docker build data/Dockerfiles/service -t mailcow/$service
```
Now auto-recreate modified containers:
```
docker compose up -d
```