1
0
小灰灰 60d3132381
Some checks failed
Build And Push Docker Image / build (push) Has been cancelled
unibdg-fetch-9.0.56.zip
2025-03-03 15:48:18 +11:00

28 lines
663 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 第一阶段使用Gradle镜像构建Jar文件
FROM gradle:7.4.2-jdk11 AS builder
# 设置工作目录
WORKDIR /app
# 复制项目文件到容器的工作目录中
COPY . /app
# 构建项目
RUN gradle build
# 第二阶段使用JRE镜像运行应用程序
FROM openjdk:11-jre-slim
# 设置工作目录
WORKDIR /app
# 从第一阶段复制构建好的Jar文件到当前镜像
COPY --from=builder /app/build/libs/unidbg-fetch-qsign-*-all.jar ./unidbg-fetch-qsign-all.jar
COPY --from=builder /app/txlib ./txlib
# 暴露项目运行的端口号
EXPOSE 8080
# 启动项目
CMD ["java", "-jar", "unidbg-fetch-qsign-all.jar", "--basePath=./txlib/8.9.71"]