1 Star 0 Fork 0

烛火流风/rabbit-spring-cloud-stream-demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.00 KB
一键复制 编辑 原始数据 按行查看 历史
devine 提交于 2021-12-18 09:15 +08:00 . feat(项目): 项目初始化
FROM 10.0.2.18:88/devops/openjdk:8-jdk
ENV PORT 8080
ENV CLASSPATH /opt/lib
EXPOSE 8080
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
# copy pom.xml and wildcards to avoid this command failing if there's no target/lib directory
COPY pom.xml target/lib* /opt/lib/
# NOTE we assume there's only 1 jar in the target dir
# but at least this means we don't have to guess the name
# we could do with a better way to know the name - or to always create an app.jar or something
COPY target/*.jar /opt/app.jar
WORKDIR /opt
#CMD ["java", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseCGroupMemoryLimitForHeap", "-Dfile.encoding=UTF-8", "-Djava.security.egd=file:/dev/./urandom", "-Duser.timezone=GMT+08", "-Xms256m", "-Xmx256m", "-jar", "app.jar"]
ENV PARAMS="--spring.profiles.active=prod"
ENTRYPOINT ["/bin/sh", "-c", "java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Dfile.encoding=UTF-8 -Djava.security.egd=file:/dev/./urandom -Duser.timezone=GMT+08 -Xms256m -Xmx256m -jar app.jar ${PARAMS}"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/ht16519/rabbit-spring-cloud-stream-demo.git
git@gitee.com:ht16519/rabbit-spring-cloud-stream-demo.git
ht16519
rabbit-spring-cloud-stream-demo
rabbit-spring-cloud-stream-demo
master

搜索帮助