diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2026-09-15 14:05:52 +0200 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2026-09-15 14:05:52 +0200 |
| commit | 717968007c67fca3067777cffa3dd40582968f4a (patch) | |
| tree | f032870cf59097cef1e5fd52e695abf8ebce9744 /container/Containerfile | |
| parent | d893a0e08fbf0ae7fc85b62a0814ab31d758169a (diff) | |
Support Custom Teardown
Similar to how we added an "RC" system to the init script, we
now have a custom tear-down script (which can do things like
unmount loop devices).
Furthermore, we make sure that an `$XDG_RUNTIME_DIR/dbx` exists
for things like SSH control sockets (so they can go somewhere
where an application has R/W access to, while only keeping RO
access to the configurations).
Diffstat (limited to 'container/Containerfile')
| -rw-r--r-- | container/Containerfile | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/container/Containerfile b/container/Containerfile index f7fc00f..8aa03ec 100644 --- a/container/Containerfile +++ b/container/Containerfile @@ -1,8 +1,5 @@ FROM docker.io/library/debian:13 -# Flag that we are a devbox -RUN touch /run/.dbxenv - # Remove container-specific APT configurations, and install required packages RUN rm /etc/apt/apt.conf.d/docker-* && \ apt-get update && \ @@ -40,7 +37,7 @@ RUN echo "StreamLocalBindUnlink yes" >> /etc/ssh/sshd_config && \ echo "AuthorizedKeysFile /etc/ssh/authorized_keys" >> /etc/ssh/sshd_config && \ touch /etc/ssh/authorized_keys -# Set up the entrypoint -RUN mkdir -p /etc/dbx/rc.d -COPY init /sbin/init +# Set up the init and stop +RUN mkdir -p /etc/dbx +COPY init stop /sbin ENTRYPOINT ["/sbin/init"] |
