Fossil SCM

Set permissions on /bin/fossil inside the container to 755, not 700. Docker doesn't care since it runs everything as virtual-root, but Podman does. Also, it complicates the extraction of a static binary since you probably didn't want it set to 700 root:root out on the host, too.

wyoung 2023-05-06 19:48 trunk
Commit 260efac1daca0deacfbe730744ff68e0dc6968aa96b7fd98fee6bffacf7b320e
1 file changed +1 -1
+1 -1
--- Dockerfile
+++ Dockerfile
@@ -67,11 +67,11 @@
6767
## ---------------------------------------------------------------------
6868
## STAGE 3: Drop BusyBox, too, now that we're done with its /bin/sh &c
6969
## ---------------------------------------------------------------------
7070
7171
FROM scratch AS run
72
-COPY --from=bld --chmod=700 /fsl/fossil /bin/
72
+COPY --from=bld --chmod=755 /fsl/fossil /bin/
7373
COPY --from=os --chmod=600 /e/* /etc/
7474
COPY --from=os --chmod=1777 /tmp /tmp/
7575
COPY --from=os --chown=fossil:fossil /log /log/
7676
COPY --from=os --chown=fossil:fossil /museum /museum/
7777
7878
--- Dockerfile
+++ Dockerfile
@@ -67,11 +67,11 @@
67 ## ---------------------------------------------------------------------
68 ## STAGE 3: Drop BusyBox, too, now that we're done with its /bin/sh &c
69 ## ---------------------------------------------------------------------
70
71 FROM scratch AS run
72 COPY --from=bld --chmod=700 /fsl/fossil /bin/
73 COPY --from=os --chmod=600 /e/* /etc/
74 COPY --from=os --chmod=1777 /tmp /tmp/
75 COPY --from=os --chown=fossil:fossil /log /log/
76 COPY --from=os --chown=fossil:fossil /museum /museum/
77
78
--- Dockerfile
+++ Dockerfile
@@ -67,11 +67,11 @@
67 ## ---------------------------------------------------------------------
68 ## STAGE 3: Drop BusyBox, too, now that we're done with its /bin/sh &c
69 ## ---------------------------------------------------------------------
70
71 FROM scratch AS run
72 COPY --from=bld --chmod=755 /fsl/fossil /bin/
73 COPY --from=os --chmod=600 /e/* /etc/
74 COPY --from=os --chmod=1777 /tmp /tmp/
75 COPY --from=os --chown=fossil:fossil /log /log/
76 COPY --from=os --chown=fossil:fossil /museum /museum/
77
78

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button