-
Notifications
You must be signed in to change notification settings - Fork 0
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
8ad59a6
commit 55c24f8
Showing
2 changed files
with
62 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,58 @@ | ||
ARG OS_VERSION=stable | ||
|
||
FROM --platform=$BUILDPLATFORM ubuntu:${OS_VERSION} | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
# Install dependencies. | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
apt-transport-https \ | ||
bash \ | ||
gnupg \ | ||
ca-certificates \ | ||
curl \ | ||
cron \ | ||
dnsmasq \ | ||
iproute2 \ | ||
locales \ | ||
lsb-release \ | ||
procps \ | ||
python3-minimal \ | ||
python3-apt \ | ||
python3-pip \ | ||
python3-setuptools \ | ||
python3-simplejson \ | ||
python3-debian \ | ||
rsyslog \ | ||
software-properties-common \ | ||
sudo \ | ||
systemd \ | ||
systemd-sysv \ | ||
tar \ | ||
unzip \ | ||
wget \ | ||
xz-utils \ | ||
zip \ | ||
&& apt-get clean \ | ||
&& rm -Rf /var/lib/apt/lists/* \ | ||
&& rm -Rf /usr/share/doc && find /usr/share/man -type f -delete \ | ||
&& rm -rf /tmp/* /var/tmp/* ; \ | ||
rm -rf /lib/systemd/system/multi-user.target.wants/* ; \ | ||
rm -rf /etc/systemd/system/*.wants/* ; \ | ||
rm -rf /lib/systemd/system/local-fs.target.wants/* ; \ | ||
rm -rf /lib/systemd/system/sockets.target.wants/*udev* ; \ | ||
rm -rf /lib/systemd/system/sockets.target.wants/*initctl* ; \ | ||
rm -rf /lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup* ; \ | ||
rm -rf /lib/systemd/system/systemd-update-utmp* ; \ | ||
rm -rf /lib/systemd/system/getty.target | ||
|
||
# Install Python 3.12 | ||
RUN add-apt-repository ppa:deadsnakes/ppa \ | ||
&& apt-get update \ | ||
&& apt-get -y install python3.12 python3.12-dev python3.12-venv | ||
|
||
# Fix potential UTF-8 errors with ansible-test. | ||
RUN locale-gen en_US.UTF-8 | ||
|
||
CMD ["/lib/systemd/systemd"] |