Skip to content

Commit

Permalink
Update build.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Rdornier authored Feb 9, 2024
1 parent d5426a2 commit dc055fe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ In the [DockerFile-base](/docker/DockerFile-base) you will notice the following
FROM nvcr.io/nvidia/pytorch:23.07-py3
```

When building the main image via [DockerFile-ms](/docker/DockerFile-ms) we make use of multisage build, i.e. using smaller image containing a software.
When building the main image via [DockerFile-ms](/docker/DockerFile-ms) we make use of multi-stage build, i.e. using smaller image containing a software.
The rational for this is to "simplify" the build when you want to change a single "program" one doesn't need to build everything from scratch but rather create a new sub-block and update the main.

```
Expand Down Expand Up @@ -179,7 +179,7 @@ docker build -f stardist/Dockerfile-stardist -t biop-stardist:0.8.5 . --no-cache

# Build the main image

By specifying the version of the sub-blocks (needs to be built in advance, se above), we can build the main image with the following command (--build-arg(s) are optionnal) :
By specifying the version of the sub-blocks (needs to be built in advance, see above), we can build the main image with the following command (--build-arg(s) are optionnal) :

```
docker build -f Dockerfile-ms -t biop-desktop:0.0.8 . --no-cache
Expand All @@ -196,10 +196,10 @@ Docker image is big because of :

- models pre-download
cellpose (all models ~350 Mo)
sampi (huge et large > 5Go)
samapi (huge et large > 5Go)

if we don't download, image will get smaller
BUT users will have to download models each time ( possibility hosting server being done at that time)
BUT users will have to download models each time (possibility of hosting server being done at that time)

- multiple conda-env (cellpose, samapi , ~5Go each)

Expand All @@ -209,4 +209,4 @@ Docker image is big because of :

# NEXT

Please proceed with [Run](/run.md)
Please proceed with [Run](/run.md)

0 comments on commit dc055fe

Please sign in to comment.