mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-30 17:00:48 +01:00
Added a section explaining how to build a docker image from source code
1 parent
754cc7f5a9
commit
3496eb3a72
1 file changed
+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:
|
||||
|
||||
Reference in new issue
Block a user