Skip to content

Commit 46ac298

Browse files
committed
docker cache run twice
1 parent 150d469 commit 46ac298

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

s3_reproducibility/config_files.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,13 @@ look online for your answers before looking at the solution. Remember: it's not
114114
1. Start by installing hydra.
115115

116116
=== "Using pip"
117+
117118
```bash
118119
pip install hydra-core
119120
```
120121

121122
=== "Using uv"
123+
122124
```bash
123125
uv add hydra-core
124126
```

s3_reproducibility/docker.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ beneficial for you to download.
250250
251251
```dockerfile
252252
WORKDIR /
253-
RUN uv sync --locked --no-cache
253+
RUN uv sync --locked --no-cache --no-install-project
254254
```
255255
256256
The `--no-cache` is quite important. Can you explain what it does and why it is important in relation to
@@ -358,7 +358,9 @@ beneficial for you to download.
358358
Otherwise, you need to enable it by setting the environment variable `DOCKER_BUILDKIT=1` before building the
359359
image.
360360
361-
Try changing your Dockerfile and rebuilding the image. You should see that the build process is much faster.
361+
Try changing your Dockerfile and rebuild the image twice e.g. first time running `docker build ...` it will
362+
still take some time as it needs to fill up the cache. The second time you run `docker build ...` you should see
363+
that the build process is much faster.
362364
363365
15. Remember, if you are ever in doubt about how files are organized inside a Docker image, you always have the option
364366
of starting the image in interactive mode:

0 commit comments

Comments
 (0)