Fixed several issues and made some enhancement to make it more robust. now pushing to both gitea server and github.
This commit is contained in:
56
Dockerfile
56
Dockerfile
@@ -2,39 +2,38 @@ ARG UBUNTU_VER=24.04
|
||||
|
||||
FROM ubuntu:${UBUNTU_VER}
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# Enable autocompletion and install packages in optimized layers
|
||||
RUN rm /etc/apt/apt.conf.d/docker-* && \
|
||||
echo 'if [ -f /etc/bash_completion ] && ! shopt -oq posix; then . /etc/bash_completion; fi' >> /root/.bashrc
|
||||
|
||||
RUN apt update && apt install -y \
|
||||
# Basic utilities
|
||||
curl wget nano lsb-release sudo bash-completion jq git screen cron \
|
||||
# Basic networking tools
|
||||
net-tools iputils-ping iproute2 iptables dnsutils \
|
||||
# Network diagnostic and probing tools
|
||||
tcpdump traceroute netcat-openbsd nmap telnet whois mtr-tiny socat \
|
||||
# Network performance tools
|
||||
iperf3 speedtest-cli \
|
||||
# Network configuration utilities
|
||||
bridge-utils vlan \
|
||||
# VPN and tunneling tools
|
||||
wireguard-tools openvpn stunnel4 \
|
||||
# Packet analysis tools
|
||||
tshark \
|
||||
# Programming languages and runtimes
|
||||
python3 python3-pip python3-venv python3-dev python-is-python3 \
|
||||
# Development tools
|
||||
software-properties-common build-essential \
|
||||
# Remote access
|
||||
openssh-server \
|
||||
# Localization
|
||||
locales
|
||||
|
||||
# Install Node.js using official NodeSource repository
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - && \
|
||||
apt-get install -y nodejs
|
||||
# Basic utilities
|
||||
curl wget nano lsb-release sudo bash-completion jq git screen cron \
|
||||
# Basic networking tools
|
||||
net-tools iputils-ping iproute2 iptables dnsutils \
|
||||
# Network diagnostic and probing tools
|
||||
tcpdump traceroute netcat-openbsd nmap telnet whois mtr-tiny socat \
|
||||
# Network performance tools
|
||||
iperf3 speedtest-cli \
|
||||
# Network configuration utilities
|
||||
bridge-utils vlan \
|
||||
# VPN and tunneling tools
|
||||
wireguard-tools openvpn stunnel4 \
|
||||
# Packet analysis tools
|
||||
tshark \
|
||||
# Programming languages and runtimes
|
||||
python3 python3-pip python3-venv python3-dev python-is-python3 \
|
||||
# Development tools
|
||||
software-properties-common build-essential \
|
||||
# Remote access
|
||||
openssh-server \
|
||||
# Localization
|
||||
locales \
|
||||
# Install Node.js using official NodeSource repository
|
||||
&& curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \
|
||||
&& apt-get install -y nodejs
|
||||
|
||||
# Configure locales
|
||||
ENV LC_ALL=en_US.UTF-8
|
||||
@@ -63,9 +62,6 @@ RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENV LOG_FILE=/dev/null
|
||||
|
||||
# Reset DEBIAN_FRONTEND
|
||||
ENV DEBIAN_FRONTEND=""
|
||||
|
||||
EXPOSE 22
|
||||
|
||||
CMD ["/entrypoint.sh"]
|
||||
|
||||
Reference in New Issue
Block a user