Last active
August 16, 2026 11:50
-
-
Save vancanhuit/047cc7391f2c5dfc3fbebc444254e5c2 to your computer and use it in GitHub Desktop.
Microsandbox OCI image (https://docs.microsandbox.dev/recipes/guest/systemd-services)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM debian:trixie | |
| ARG MISE_VERSION=v2026.8.6 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| ENV MISE_DATA_DIR=/mise | |
| ENV MISE_CONFIG_DIR=/mise | |
| ENV MISE_CACHE_DIR=/mise/cache | |
| ENV MISE_INSTALL_PATH=/usr/local/bin/mise | |
| ENV PATH=/mise/shims:${PATH} | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends \ | |
| bash-completion \ | |
| build-essential \ | |
| ca-certificates \ | |
| curl \ | |
| dbus \ | |
| git \ | |
| iproute2 \ | |
| jq \ | |
| kmod \ | |
| less \ | |
| openssh-client \ | |
| procps \ | |
| sudo \ | |
| systemd \ | |
| systemd-sysv \ | |
| unzip \ | |
| udev \ | |
| xz-utils \ | |
| && install -d -m 0755 /etc/sysctl.d \ | |
| && printf '%s\n' \ | |
| '# Microsandbox compact-kernel overrides' \ | |
| 'kernel.pid_max = 32768' \ | |
| '-kernel.sysrq = 0x01b6' \ | |
| > /etc/sysctl.d/90-microsandbox.conf \ | |
| && apt-get clean \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN install -m 0755 -d /etc/apt/keyrings \ | |
| && curl -fsSL https://download.docker.com/linux/debian/gpg \ | |
| -o /etc/apt/keyrings/docker.asc \ | |
| && chmod a+r /etc/apt/keyrings/docker.asc \ | |
| && printf '%s\n' \ | |
| 'Types: deb' \ | |
| 'URIs: https://download.docker.com/linux/debian' \ | |
| "Suites: $(. /etc/os-release && echo "$VERSION_CODENAME")" \ | |
| 'Components: stable' \ | |
| "Architectures: $(dpkg --print-architecture)" \ | |
| 'Signed-By: /etc/apt/keyrings/docker.asc' \ | |
| > /etc/apt/sources.list.d/docker.sources \ | |
| && apt-get update \ | |
| && apt-get install -y --no-install-recommends \ | |
| containerd.io \ | |
| docker-buildx-plugin \ | |
| docker-ce \ | |
| docker-ce-cli \ | |
| docker-compose-plugin \ | |
| && systemctl enable containerd.service docker.service \ | |
| && apt-get clean \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN curl -fsSL https://mise.run | sh \ | |
| && mise --version \ | |
| && install -d -m 0755 /mise/cache | |
| STOPSIGNAL SIGRTMIN+3 | |
| CMD ["/lib/systemd/systemd"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment