-
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 #29 from darkwizard242/feature/add-debian-bullseye
Add Debian Bullseye
- Loading branch information
Showing
4 changed files
with
36 additions
and
4 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,22 @@ | ||
FROM debian:bullseye as base | ||
LABEL maintainer="Ali Muhammad" | ||
|
||
ENV DEPENDENCIES "software-properties-common python3 python3-pip python3-setuptools python3-software-properties sudo apt-transport-https iputils-ping wget curl gnupg gcc python3-dev" | ||
|
||
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 -U pip wheel \ | ||
&& python3 -m pip install --no-cache-dir -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"] |