Skip to content

Commit

Permalink
修改为直接下载编译结果
Browse files Browse the repository at this point in the history
  • Loading branch information
buyfakett committed Nov 28, 2024
1 parent 6210731 commit 80a0d60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
8 changes: 1 addition & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
FROM golang:1.21-alpine AS builder
WORKDIR /app
COPY . .
RUN go mod download
RUN go build -o redis-shake ./cmd/redis-shake

FROM alpine:latest
WORKDIR /app
COPY --from=builder /app/redis-shake .
ADD redis-shake .
5 changes: 2 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
git clone --single-branch --depth 1 https://github.com/tair-opensource/RedisShake.git

rm -f RedisShake/Dockerfile && cp Dockerfile RedisShake/ && cd RedisShake/
wget https://github.com/tair-opensource/RedisShake/releases/download/v4.2.2/redis-shake-linux-amd64.tar.gz

tar -zxvf redis-shake-linux-amd64.tar.gz

0 comments on commit 80a0d60

Please sign in to comment.