fix: docker issues

This commit is contained in:
hiddify
2024-09-29 17:13:45 +02:00
parent 7834d35dbe
commit bd030c5c6b
3 changed files with 10 additions and 7 deletions

View File

@@ -4,16 +4,18 @@ ENV VERSION=v3.1.0
WORKDIR /hiddify
RUN apk add curl tar gzip libc6-compat # iptables ip6tables
RUN case "$(apk --print-arch)" in \
RUN echo "architecture: $(apk --print-arch)" && \
case "$(apk --print-arch)" in \
x86_64) ARCH=amd64 ;; \
i386) ARCH=386 ;; \
i386|x86) ARCH=386 ;; \
aarch64) ARCH=arm64 ;; \
armv7) ARCH=armv7 ;; \
armv6) ARCH=armv6 ;; \
armv6|armhf) ARCH=armv6 ;; \
armv5) ARCH=armv5 ;; \
s390x) ARCH=s390x ;; \
*) echo "Unsupported architecture: $(apk --print-arch) $(uname -m)" && exit 1 ;; \
esac && \
echo "Downloading https://github.com/hiddify/hiddify-core/releases/download/${VERSION}/hiddify-cli-linux-$ARCH.tar.gz" && \
curl -L -o hiddify-cli.tar.gz https://github.com/hiddify/hiddify-core/releases/download/${VERSION}/hiddify-cli-linux-$ARCH.tar.gz && \
tar -xzf hiddify-cli.tar.gz && rm hiddify-cli.tar.gz
COPY hiddify.sh .

View File

@@ -5,7 +5,7 @@ services:
image: ghcr.io/hiddify/hiddify-next-core/cli:latest
network_mode: host
environment:
CONFIG: "https://raw.githubusercontent.com/ircfspace/warpsub/main/export/warp#WARP%20(IRCF)"
CONFIG: "https://github.com/hiddify/hiddify-next/raw/refs/heads/main/test.configs/warp"
volumes:
- ./hiddify.json:/hiddify/hiddify.json
command: ["/opt/hiddify.sh"]

View File

@@ -1,4 +1,5 @@
{
"region":"other",
"service-mode": "proxy",
"log-level": "info",
"resolve-destination": true,
@@ -7,15 +8,15 @@
"remote-dns-domain-strategy": "",
"direct-dns-address": "1.1.1.1",
"direct-dns-domain-strategy": "",
"mixed-port": 2334,
"local-dns-port": 6450,
"mixed-port": 12334,
"local-dns-port": 16450,
"tun-implementation": "mixed",
"mtu": 9000,
"strict-route": false,
"connection-test-url": "https://www.gstatic.com/generate_204",
"url-test-interval": 600,
"enable-clash-api": true,
"clash-api-port": 6756,
"clash-api-port": 16756,
"bypass-lan": false,
"allow-connection-from-lan": true,
"enable-fake-dns": false,