Skip to content

Commit

Permalink
fix: docker issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com committed Sep 29, 2024
1 parent 7834d35 commit bd030c5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
8 changes: 5 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
7 changes: 4 additions & 3 deletions docker/hiddify.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"region":"other",
"service-mode": "proxy",
"log-level": "info",
"resolve-destination": true,
Expand All @@ -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,
Expand Down

0 comments on commit bd030c5

Please sign in to comment.