improve docker files

This commit is contained in:
mercury
2023-05-12 21:28:51 +04:00
parent b84ab4b464
commit efb86ecf99
5 changed files with 21 additions and 10 deletions
+7 -5
View File
@@ -3,12 +3,14 @@ arg RELEASE
from ${SYSTEM}:${RELEASE}
ENV DEBIAN_FRONTEND noninteractive
run apt update && \
apt install -y git net-tools lsof ssh wget
run wget https://github.com/AdguardTeam/AdGuardHome/releases/download/v0.107.29/AdGuardHome_linux_amd64.tar.gz && \
apt install -y git net-tools lsof ssh wget && \
apt clean autoclean && \
apt autoremove -y && \
wget https://github.com/AdguardTeam/AdGuardHome/releases/download/v0.107.29/AdGuardHome_linux_amd64.tar.gz && \
tar -xf AdGuardHome_linux_amd64.tar.gz && \
mkdir -p /opt/adguardhome && \
mkdir /root/.ssh
copy config/AdGuardHome.yaml /opt/adguardhome/AdGuardHome.yaml
run wget https://github.com/ameshkov/dnslookup/releases/download/v1.8.1/dnslookup-linux-amd64-v1.8.1.tar.gz && \
mkdir /root/.ssh && \
wget https://github.com/ameshkov/dnslookup/releases/download/v1.8.1/dnslookup-linux-amd64-v1.8.1.tar.gz && \
tar -xf dnslookup-linux-amd64-v1.8.1.tar.gz
copy config/AdGuardHome.yaml /opt/adguardhome/AdGuardHome.yaml
env PATH="$PATH:/linux-amd64"
+2
View File
@@ -1,4 +1,6 @@
from nginx:stable
run apt update && \
apt install -y git net-tools lsof ssh && \
apt clean autoclean && \
apt autoremove -y && \
mkdir /root/.ssh
+3 -1
View File
@@ -1,5 +1,7 @@
from nginx/unit:1.29.0-php8.1
from nginx/unit:1.29.1-php8.1
run apt update && apt install -y qrencode wget libssh2-1-dev ssh libicu-dev libyaml-dev certbot && \
apt clean autoclean && \
apt autoremove -y && \
pecl install https://pecl.php.net/get/ssh2-1.3.1.tgz && \
pecl install https://pecl.php.net/get/yaml-2.2.2.tgz && \
docker-php-ext-install intl && \
+4 -3
View File
@@ -3,9 +3,10 @@ arg RELEASE
from ${SYSTEM}:${RELEASE}
ENV DEBIAN_FRONTEND noninteractive
run apt update && \
apt install -y ssh git net-tools xz-utils wget
run mkdir /root/.ssh && \
mkdir /ssh && \
apt install -y ssh git net-tools xz-utils wget && \
apt clean autoclean && \
apt autoremove -y && \
mkdir /root/.ssh && \
touch /root/.ssh/authorized_keys && \
wget https://github.com/shadowsocks/shadowsocks-rust/releases/download/v1.15.2/shadowsocks-v1.15.2.x86_64-unknown-linux-gnu.tar.xz && \
tar -xf shadowsocks-v1.15.2.x86_64-unknown-linux-gnu.tar.xz && \
+5 -1
View File
@@ -2,4 +2,8 @@ arg SYSTEM
arg RELEASE
from ${SYSTEM}:${RELEASE}
ENV DEBIAN_FRONTEND noninteractive
run apt update && apt install -y linux-headers-$(uname -r) iproute2 net-tools iptables xtables-addons-common xtables-addons-dkms wireguard ssh && mkdir /root/.ssh
run apt update && \
apt install -y linux-headers-$(uname -r) iproute2 net-tools iptables xtables-addons-common xtables-addons-dkms wireguard ssh git && \
apt clean autoclean && \
apt autoremove -y && \
mkdir /root/.ssh