6 Star 25 Fork 4

dushixiang / kafka-map

加入 Gitee
与超过 600 万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 672 Bytes
一键复制 编辑 Web IDE 原始数据 按行查看 历史
dushixiang 提交于 2021-11-07 01:23 . 修改dockerfile
#
# Build stage
#
FROM maven:3.6.0-jdk-11-slim AS build
WORKDIR /app
COPY src src
COPY pom.xml pom.xml
COPY LICENSE LICENSE
RUN mvn -f pom.xml clean package -Dmaven.test.skip=true
#
# Package stage
#
FROM openjdk:11-jre-slim
ENV SERVER_PORT 8080
ENV DEFAULT_USERNAME admin
ENV DEFAULT_PASSWORD admin
WORKDIR /usr/local/kafka-map
COPY --from=build /app/target/*.jar kafka-map.jar
COPY --from=build /app/LICENSE LICENSE
EXPOSE $SERVER_PORT
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/usr/local/kafka-map/kafka-map.jar", "--server.port=${SERVER_PORT}", "--default.username=${DEFAULT_USERNAME}", "--default.password=${DEFAULT_PASSWORD}"]
Java
1
https://gitee.com/dushixiang/kafka-map.git
git@gitee.com:dushixiang/kafka-map.git
dushixiang
kafka-map
kafka-map
master

搜索帮助