diff --git a/.github/workflows/push-images.yaml b/.github/workflows/push-images.yaml index c723e46..35fa5d9 100644 --- a/.github/workflows/push-images.yaml +++ b/.github/workflows/push-images.yaml @@ -22,7 +22,7 @@ on: type: string platforms: description: '构建镜像平台' - default: 'linux/amd64,linux/arm64/v8' + default: 'linux/amd64,linux/arm64' required: false type: string diff --git a/Dockerfile b/Dockerfile index 87caf88..5f2f468 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,7 @@ COPY go.mod go.sum ./ RUN go mod download COPY . . RUN CGO_ENABLED=1 GOOS=linux GOARCH=$TARGETARCH go build -ldflags="-s -w" -o server . && \ + ls && \ mv config/.env.example config/clash.ini server /app/static @@ -20,11 +21,13 @@ LABEL org.opencontainers.image.source="https://github.com/twbworld/proxy" WORKDIR /app COPY --from=builder /app/static/ static/ RUN set -xe && \ + ls static/ && \ mkdir -p dao config && \ mv static/.env.example config/.env && \ mv static/clash.ini config && \ mv static/server server && \ chmod +x server && \ + ls && \ # sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && \ apk add -U --no-cache tzdata ca-certificates && \ rm -rf /var/cache/apk/*