Skip to content

Commit

Permalink
add debian bookworm
Browse files Browse the repository at this point in the history
  • Loading branch information
antmelekhin committed Aug 14, 2023
1 parent 63de700 commit 98d2707
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
- name: 'debian-11'
dockerfile: 'debian/11.Dockerfile'
tags: 'antmelekhin/docker-systemd:debian-11'
- name: 'debian-12'
dockerfile: 'debian/12.Dockerfile'
tags: 'antmelekhin/docker-systemd:debian-12'
- name: 'ubuntu-20.04'
dockerfile: 'ubuntu/20.04.Dockerfile'
tags: 'antmelekhin/docker-systemd:ubuntu-20.04'
Expand Down
22 changes: 22 additions & 0 deletions debian/12.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM debian:bookworm

LABEL maintainer='Anton Melekhin'

ENV container=docker \
DEBIAN_FRONTEND=noninteractive

RUN INSTALL_PKGS='ca-certificates gnupg iproute2 python3 python3-apt sudo systemd' \
&& apt-get update && apt-get install $INSTALL_PKGS -y --no-install-recommends \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN find /etc/systemd/system \
/lib/systemd/system \
-path '*.wants/*' \
-not -name '*journald*' \
-not -name '*systemd-tmpfiles*' \
-not -name '*systemd-user-sessions*' \
-print0 | xargs -0 rm -vf

VOLUME [ "/sys/fs/cgroup" ]

ENTRYPOINT [ "/lib/systemd/systemd" ]

0 comments on commit 98d2707

Please sign in to comment.