Fossil SCM
The chown -R bit added to the Dockerfile touches /jail/bin/fossil, which causes "docker build" to promote it back into a new layer, nearly doubling the container size. Doing a chown now only on two directories, restoring it to its sub-9M size.
Commit
00cc9c3eb1040c787a1982256be01282353243380c5fd062e559f5105ed9966d
Parent
ba21bc0b8fcf754…
1 file changed
+1
-1
+1
-1
| --- Dockerfile | ||
| +++ Dockerfile | ||
| @@ -34,11 +34,11 @@ | ||
| 34 | 34 | && mknod -m 600 dev/urandom c 1 9 \ |
| 35 | 35 | && echo 'root:x:0:0:Fossil Init:/:/bin/nologin' > /etc/passwd \ |
| 36 | 36 | && echo 'root:x:0:root' > /etc/group \ |
| 37 | 37 | && addgroup -g ${UID} fossil \ |
| 38 | 38 | && adduser -h `pwd` -g 'Fossil User' -G fossil -u ${UID} -S fossil \ |
| 39 | - && chown -R fossil:fossil . | |
| 39 | + && chown fossil:fossil . museum | |
| 40 | 40 | |
| 41 | 41 | # Now we can run the stripped-down environment in a chroot jail, while |
| 42 | 42 | # leaving open the option to debug it live via the Busybox shell. |
| 43 | 43 | # |
| 44 | 44 | # Implicit: We don't set USER here on purpose because we want Fossil to |
| 45 | 45 |
| --- Dockerfile | |
| +++ Dockerfile | |
| @@ -34,11 +34,11 @@ | |
| 34 | && mknod -m 600 dev/urandom c 1 9 \ |
| 35 | && echo 'root:x:0:0:Fossil Init:/:/bin/nologin' > /etc/passwd \ |
| 36 | && echo 'root:x:0:root' > /etc/group \ |
| 37 | && addgroup -g ${UID} fossil \ |
| 38 | && adduser -h `pwd` -g 'Fossil User' -G fossil -u ${UID} -S fossil \ |
| 39 | && chown -R fossil:fossil . |
| 40 | |
| 41 | # Now we can run the stripped-down environment in a chroot jail, while |
| 42 | # leaving open the option to debug it live via the Busybox shell. |
| 43 | # |
| 44 | # Implicit: We don't set USER here on purpose because we want Fossil to |
| 45 |
| --- Dockerfile | |
| +++ Dockerfile | |
| @@ -34,11 +34,11 @@ | |
| 34 | && mknod -m 600 dev/urandom c 1 9 \ |
| 35 | && echo 'root:x:0:0:Fossil Init:/:/bin/nologin' > /etc/passwd \ |
| 36 | && echo 'root:x:0:root' > /etc/group \ |
| 37 | && addgroup -g ${UID} fossil \ |
| 38 | && adduser -h `pwd` -g 'Fossil User' -G fossil -u ${UID} -S fossil \ |
| 39 | && chown fossil:fossil . museum |
| 40 | |
| 41 | # Now we can run the stripped-down environment in a chroot jail, while |
| 42 | # leaving open the option to debug it live via the Busybox shell. |
| 43 | # |
| 44 | # Implicit: We don't set USER here on purpose because we want Fossil to |
| 45 |