代码拉取完成,页面将自动刷新
FROM openjdk:8-jdk-alpine
MAINTAINER liubiao "2691973894@qq.com"
WORKDIR /jar
ENV PATH /usr/local/bin:$PATH
ENV ENV_IP=192.168.50.115
VOLUME /jar
RUN mkdir -p /jar/logs
COPY target/*.jar /jar/app.jar
EXPOSE 8888
EXPOSE 8889
RUN echo "https://mirrors.aliyun.com/alpine/v3.8/main/" > /etc/apk/repositories \
&& echo "https://mirrors.aliyun.com/alpine/v3.8/community/" >> /etc/apk/repositories \
&& apk add --no-cache tzdata \
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo Asia/Shanghai > /etc/timezone \
&& apk del tzdata \
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/jar/app.jar"]
# 推荐使用Buddy构建 https://app.buddy.works/liubiaozh
# sudo docker build -f Dockerfile -t app-all .
# sudo docker tag app-all:latest registry.cn-hangzhou.aliyuncs.com/liubiao_dev/dev:app-all
# sudo docker push registry.cn-hangzhou.aliyuncs.com/liubiao_dev/dev:app-all
# sudo docker rmi registry.cn-hangzhou.aliyuncs.com/liubiao_dev/dev:app-all
# sudo docker login --username=liubiao51991151 registry.cn-hangzhou.aliyuncs.com
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。