-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
304fb78
commit 68f82df
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM ubuntu:18.04 | ||
|
||
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" ] |