加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 920 Bytes
一键复制 编辑 原始数据 按行查看 历史
FROM maven:3.8-openjdk-11-slim AS builder
WORKDIR /app
COPY . /app
RUN mvn clean install -Dmaven.test.skip=true
FROM bellsoft/liberica-openjdk-alpine-musl:11
COPY --from=builder /app/target/redis-rdb-cli-release.zip /tmp/redis-rdb-cli-release.zip
WORKDIR /app
# because of the cli has set shebang
RUN unzip -o /tmp/redis-rdb-cli-release.zip \
&& apk add --no-cache bash \
&& rm -f /tmp/redis-rdb-cli-release.zip \
&& ln -s /app/redis-rdb-cli/bin/rct /usr/local/bin/rct \
&& ln -s /app/redis-rdb-cli/bin/rmt /usr/local/bin/rmt \
&& ln -s /app/redis-rdb-cli/bin/rst /usr/local/bin/rst \
&& ln -s /app/redis-rdb-cli/bin/ret /usr/local/bin/ret \
&& ln -s /app/redis-rdb-cli/bin/rdt /usr/local/bin/rdt \
&& ln -s /app/redis-rdb-cli/bin/rcut /usr/local/bin/rcut \
&& ln -s /app/redis-rdb-cli/bin/rcut /usr/local/bin/rmonitor
WORKDIR /app/redis-rdb-cli
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化