diff --git a/README.md b/README.md index eaeaf91..91e95b6 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,9 @@ ## 打包 ```sh +npm install -g pnpm +pnpm i +pnpm build docker build -f ./build/Dockerfile -t clash-and-dashboard:latest . ``` diff --git a/build/Dockerfile b/build/Dockerfile index 6bc42ee..6a4987f 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -1,4 +1,4 @@ -FROM dreamacro/clash:v1.16.0 +FROM --platform=$TARGETPLATFORM dreamacro/clash:v1.16.0 EXPOSE 8080 diff --git a/build/start.sh b/build/start.sh index 73cc143..7a8fe82 100644 --- a/build/start.sh +++ b/build/start.sh @@ -1,2 +1,4 @@ -nginx -/clash \ No newline at end of file +#!/bin/sh +sleep 5s +/usr/sbin/nginx +/clash