Commit 377e74d
Mike Morris
Dockerfile enhancements
Update apt-get command to perform cleanup, shrinks existing image by about 20MB
Use ARG instead of ENV for LIQUIBASE_VERSION. This enables you to pass the Liquibase
version at image build time and create tagged builds easily. Also avoids setting
an extra env variable during docker run. Example tagged build command:
docker build . --build-arg LIQUIBASE_VERSION=3.8.5 -t liquibase/docker:3.8.5
Simplify download logic and avoid the intermediate file
Use chmod safely (755 vs 777)1 parent 7d94cc3 commit 377e74d
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
22 | | - | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
26 | | - | |
27 | | - | |
28 | | - | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | | - | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
0 commit comments