Added a section explaining how to build a docker image from source code

Krzysztof Osiniak committed 2025-11-29 21:14:04 +01:00
1 parent 754cc7f5a9
commit 3496eb3a72
1 file changed
+15
+15
@@ -135,6 +135,21 @@ mv Dockerfile.go_build Dockerfile
docker build --no-cache -t 'chrislusf/seaweedfs' .
```
### Building image from source code
Create an executable for docker and move it to the docker folder
```bash
cd weed
make build_docker
mv weed ../docker/
cd ..
```
Build the image
```bash
cd docker
docker build -f Dockerfile.local --no-cache -t localregistry/seaweedfs
```
### In production
You can use docker volumes to persist data: