17 lines
428 B
Plaintext
17 lines
428 B
Plaintext
#ARG instanceid="996sdk-yinqing-registry.cn-hangzhou.cr.aliyuncs.com/default/openjdk"
|
|
ARG instanceid="registry.cn-hangzhou.aliyuncs.com/yinzhou_docker_hub/openjdk"
|
|
|
|
FROM ${instanceid}:8-jdk-alpine
|
|
|
|
# 将 JAR 文件复制到容器中
|
|
COPY ./target/sql_run.jar /opt/sdk/sql_run.jar
|
|
|
|
# 设置工作目录
|
|
WORKDIR /opt/sdk/
|
|
|
|
# 暴露应用程序的端口
|
|
EXPOSE 8308
|
|
|
|
# 运行应用程序
|
|
ENTRYPOINT ["java", "-jar", "sql_run.jar"]
|