-
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.
Merge pull request #31 from darkwizard242/feature/add-ubuntu-24.04
Include Ubuntu 24.04 and update to runner 22.04 image
- Loading branch information
Showing
4 changed files
with
42 additions
and
11 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
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,21 @@ | ||
FROM ubuntu:noble as base | ||
LABEL maintainer="Ali Muhammad" | ||
|
||
ENV DEPENDENCIES "software-properties-common python3 python3-pip python3-pip-whl python3-setuptools python3-software-properties sudo apt-transport-https iputils-ping wget curl gnupg gcc python3-dev xz-utils" | ||
|
||
ENV PIP_PKGS "ansible" | ||
|
||
# Install required dependencies | ||
RUN DEBIAN_FRONTEND=non-interactive apt-get update -y \ | ||
&& DEBIAN_FRONTEND=non-interactive apt-get --no-install-recommends -y upgrade \ | ||
&& DEBIAN_FRONTEND=non-interactive apt-get install --no-install-recommends -y ${DEPENDENCIES} \ | ||
&& python3 -m pip install --no-cache-dir --break-system-packages -U ${PIP_PKGS} \ | ||
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*.deb \ | ||
&& for FILE in $(find /var/log -maxdepth 2 -type f); do echo "" > ${FILE}; done \ | ||
&& apt-get autoremove \ | ||
&& apt-get clean | ||
|
||
FROM base | ||
|
||
# Initialize | ||
CMD ["/bin/bash"] |