Commit 2d87edd
authored
Fix Dockerfile not using current sources (#60)
The Dockerfile previously cloned the LNT sources as a RUN step, which meant that
when rebuilding the image any changes to the LNT sources wouldn't be picked up
because it would be cached.
This PR fixes it alongside some other things:
- Don't clone the sources in a RUN step, instead COPY them from the build context
- Move the Dockerfile/docker-compose.yml files to the root so the source files are
in the build directory
- Split out the install step so that we only COPY over the files necessary to run the
install (to aid with layer caching)
- In the docker-compose.yml file, postgres:11 doesn't seem to exist anymore on docker.hub
so upgrade it to 13, and fully qualify it so it can be used by podman
- Remove the .env file and just write the defaults directly in the docker-compose.yml file
- This also downgrades Jinja2 and pyyaml again to get building with Python 3.10, but these
can probably be fixed in another PR1 parent 8b17183 commit 2d87edd
File tree
5 files changed
+33
-27
lines changed- docker
5 files changed
+33
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
| 27 | + | |
| 28 | + | |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
0 commit comments