1 Star 1 Fork 2

刘彪/ProjectAll

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
liubiao 提交于 2023-11-16 14:31 . 文档
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/liubiaowebcode/ProjectAll.git
git@gitee.com:liubiaowebcode/ProjectAll.git
liubiaowebcode
ProjectAll
ProjectAll
master

搜索帮助