-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfilewp
More file actions
26 lines (20 loc) · 804 Bytes
/
Dockerfilewp
File metadata and controls
26 lines (20 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Use Debian Bookworm as the base image
FROM debian:bookworm
# Define a build argument (default is false)
ARG INSTALL_SCRIPT=false
# Install dependencies
RUN apt update && apt install -y \
curl git vim build-essential \
software-properties-common \
&& apt clean
# Cloning the Github repo with the Script codes
RUN git clone https://github.com/krishnaprasad-2001/AdminAssist /root/AdminAssist
WORKDIR /root/AdminAssist
# Conditionally install the script if the INSTALL_SCRIPT argument is set to true
RUN if [ "$INSTALL_SCRIPT" = "true" ]; then \
echo "Installing the script..."; \
# Add commands to install or setup your script here, e.g., \
chmod +x /root/AdminAssist/install.sh && bash /root/AdminAssist/install.sh; \
fi
# Set the default command to bash
CMD ["bash"]