Fossil SCM

Tiny clarity tweaks to the Dockerfile. No functional change.

wyoung 2023-03-24 07:03 trunk
Commit 591e3eb90edd73f086948fc87e593338eae59be931630d7f507440dd75638025
1 file changed +2 -2
+2 -2
--- Dockerfile
+++ Dockerfile
@@ -56,17 +56,17 @@
5656
5757
## ---------------------------------------------------------------------
5858
## STAGE 2: Pare that back to the bare essentials.
5959
## ---------------------------------------------------------------------
6060
61
-FROM scratch
61
+FROM scratch AS os
6262
WORKDIR /jail
6363
ARG UID=499
6464
ENV PATH "/bin:/usr/bin:/jail/bin"
6565
6666
### Lay BusyBox down as the first base layer. Coupled with the host's
67
-### kernel, this is the "OS."
67
+### kernel, this is the "OS" used to RUN the subsequent setup script.
6868
COPY --from=builder /tmp/bbx/busybox /bin/
6969
RUN [ "/bin/busybox", "--install", "/bin" ]
7070
7171
### Set up that base OS for our specific use without tying it to
7272
### anything likely to change often. So long as the user leaves
7373
--- Dockerfile
+++ Dockerfile
@@ -56,17 +56,17 @@
56
57 ## ---------------------------------------------------------------------
58 ## STAGE 2: Pare that back to the bare essentials.
59 ## ---------------------------------------------------------------------
60
61 FROM scratch
62 WORKDIR /jail
63 ARG UID=499
64 ENV PATH "/bin:/usr/bin:/jail/bin"
65
66 ### Lay BusyBox down as the first base layer. Coupled with the host's
67 ### kernel, this is the "OS."
68 COPY --from=builder /tmp/bbx/busybox /bin/
69 RUN [ "/bin/busybox", "--install", "/bin" ]
70
71 ### Set up that base OS for our specific use without tying it to
72 ### anything likely to change often. So long as the user leaves
73
--- Dockerfile
+++ Dockerfile
@@ -56,17 +56,17 @@
56
57 ## ---------------------------------------------------------------------
58 ## STAGE 2: Pare that back to the bare essentials.
59 ## ---------------------------------------------------------------------
60
61 FROM scratch AS os
62 WORKDIR /jail
63 ARG UID=499
64 ENV PATH "/bin:/usr/bin:/jail/bin"
65
66 ### Lay BusyBox down as the first base layer. Coupled with the host's
67 ### kernel, this is the "OS" used to RUN the subsequent setup script.
68 COPY --from=builder /tmp/bbx/busybox /bin/
69 RUN [ "/bin/busybox", "--install", "/bin" ]
70
71 ### Set up that base OS for our specific use without tying it to
72 ### anything likely to change often. So long as the user leaves
73

Keyboard Shortcuts

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