From 75c7defdb85ab05a445e01dca7fcd13675f55c39 Mon Sep 17 00:00:00 2001 From: hiddify-com <114227601+hiddify-com@users.noreply.github.com> Date: Sun, 17 Nov 2024 14:43:47 +0330 Subject: [PATCH] reduce the docker size --- Dockerfile | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7025af7c5..3cc5c392e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,6 @@ FROM ubuntu:22.04 EXPOSE 80 EXPOSE 443 -RUN apt-get update && apt-get install -y apt-utils curl sudo systemd xxd lsof gawk iproute2 - ENV TERM xterm ENV TZ Etc/UTC ENV DEBIAN_FRONTEND noninteractive @@ -12,18 +10,14 @@ USER root WORKDIR /opt/hiddify-manager/ COPY . . -RUN mkdir -p /hiddify-data/ssl/ && \ - rm -rf /opt/hiddify-manager/ssl && \ - ln -sf /hiddify-data/ssl /opt/hiddify-manager/ssl - -# RUN mkdir -p ~/.ssh && echo "StrictHostKeyChecking no " > ~/.ssh/config -ENV HIDDIFY_PANLE_SOURCE_DIR=/opt/hiddify-manager/hiddify-panel/src/ -ENV DOCKER_MODE=true -ENV USE_VENV=true -RUN bash install.sh install-docker --no-gui -RUN cp /opt/hiddify-manager/other/docker/* /usr/bin/ +RUN apt-get update && apt-get install -y apt-utils curl sudo systemd xxd lsof gawk iproute2 &&\ + mkdir -p /hiddify-data/ssl/ && \ + rm -rf /opt/hiddify-manager/ssl && \ + ln -sf /hiddify-data/ssl /opt/hiddify-manager/ssl &&\ + bash install.sh install-docker --no-gui &&\ + rm -rf /var/cache/apt/archives /var/lib/apt/lists/* +COPY other/docker/ /usr/bin/ - ENTRYPOINT ["./docker-init.sh"]