代码拉取完成,页面将自动刷新
FROM springci/graalvm-ce:java11-0.12.x AS builder
ARG MAVEN_VERSION=3.9.8
ARG BASE_URL=https://ftp.yz.yamagata-u.ac.jp/pub/network/apache/maven/maven-3/${MAVEN_VERSION}/binaries
WORKDIR /app
COPY . /app
RUN apt-get update && apt-get install -y curl
RUN mkdir -p /usr/share/maven /usr/share/maven/ref \
&& curl -fsSL -o /tmp/apache-maven.tar.gz ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz \
&& tar -xzf /tmp/apache-maven.tar.gz -C /usr/share/maven --strip-components=1 \
&& rm -f /tmp/apache-maven.tar.gz \
&& ln -s /usr/share/maven/bin/mvn /usr/bin/mvn
RUN mvn clean install -Pstatic -DskipTests
FROM frolvlad/alpine-glibc:alpine-3.17_glibc-2.34
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。