Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
twbworld committed Jan 8, 2024
1 parent 2996431 commit 23d2341
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/push-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
type: string
platforms:
description: '构建镜像平台'
default: 'linux/amd64,linux/arm64/v8'
default: 'linux/amd64,linux/arm64'
required: false
type: string

Expand Down
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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/*
Expand Down

0 comments on commit 23d2341

Please sign in to comment.