dashan
1 year ago
1 changed files with 16 additions and 1 deletions
@ -1 +1,16 @@ |
|||||||
FROM openjdk:17 |
#基础镜像 |
||||||
|
FROM openjdk:17-jre |
||||||
|
# author |
||||||
|
MAINTAINER dashan |
||||||
|
# 挂载目录 |
||||||
|
VOLUME /home/dashan |
||||||
|
# 创建目录 |
||||||
|
RUN mkdir -p /home/dashan |
||||||
|
# 指定路径 |
||||||
|
WORKDIR /home/dashan |
||||||
|
# 复制jar文件到路径 |
||||||
|
COPY ./jar/ds-gateway.jar /home/dashan/ds-gateway.jar |
||||||
|
#暴漏端口 |
||||||
|
EXPOSE 8080 |
||||||
|
# 启动网关服务 |
||||||
|
ENTRYPOINT ["java","-jar","ds-gateway.jar"] |
Loading…
Reference in new issue