-
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
600feab
commit 7b6a7aa
Showing
2 changed files
with
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM amazonlinux:2 | ||
|
||
ENV container=docker | ||
|
||
RUN INSTALL_PKGS='findutils initscripts iproute python3 sudo' \ | ||
&& yum makecache && yum install -y $INSTALL_PKGS \ | ||
&& yum clean all | ||
|
||
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 [ "/usr/sbin/init" ] |