diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 000000000..3bf027a78 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +**/.idea +**/.github \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..05d7fd400 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM ubuntu:20.04 + +COPY . /opt/hiddify-config/ +WORKDIR /opt/hiddify-config/ +ENV TERM xterm +ENV TZ Etc/UTC +ENV DEBIAN_FRONTEND noninteractive +RUN apt-get update +RUN apt-get install -y dialog apt-utils curl sudo systemd python2 xxd lsof + +#RUN curl -L https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl.py -o /usr/bin/systemctl +RUN bash -c "$(cat config.env.docker) $(cat install.sh)" \ No newline at end of file diff --git a/config.env.docker b/config.env.docker new file mode 100644 index 000000000..298232fe7 --- /dev/null +++ b/config.env.docker @@ -0,0 +1,14 @@ +DO_NOT_RUN=true +ENABLE_SS=true +ENABLE_TELEGRAM=true +ENABLE_VMESS=true +ENABLE_MONITORING=true +ENABLE_FIREWALL=true +ENABLE_NETDATA=true +ENABLE_HTTP_PROXY=true +ALLOW_ALL_SNI_TO_USE_PROXY=true +ENABLE_AUTO_UPDATE=true +ENABLE_TROJAN_GO=true +ENABLE_SPEED_TEST=true +BLOCK_IR_SITES=true +ONLY_IPV4=true