提交 2c8e24d0 编写于 作者: andy_f's avatar andy_f

ADD Dockerfile

上级 dd3d46ee
FROM openjdk:8u292
LABEL MAINTAINER=Andy
WORKDIR /apps
ADD target/user-center.jar /apps/
CMD ["java","-jar","user-center.jar"]
# docker run --name user-center \
# -e spring_cloud_nacos_server_addr=10.0.0.12:8848 \
# -e zlt_datasource_ip=10.0.0.12 \
# -e zlt_datasource_username=root \
# -e zlt_datasource_password=redhat \
# -e spring_redis_host=10.0.0.12 \
# -d user-center:4.5
\ No newline at end of file
FROM openjdk:8u292
LABEL MAINTAINER=Andy
WORKDIR /apps
ADD target/zuul-gateway.jar /apps/
CMD ["java","-jar","zuul-gateway.jar"]
# docker run --name zuul-gateway \
# -e spring_cloud_nacos_server_addr=10.0.0.12:8848 \
# -e zlt_datasource_ip=10.0.0.12 \
# -e zlt_datasource_username=root \
# -e zlt_datasource_password=redhat \
# -e spring_redis_host=10.0.0.12 \
# -d zuul-gateway:4.5
\ No newline at end of file
......@@ -4,4 +4,10 @@ LABEL MAINTAINER=Andy
WORKDIR /apps
ADD target/zlt-uaa.jar /apps/
CMD ["java","-jar","zlt-uaa.jar"]
# docker run --name zlt-uaa -e MYSQL_ROOT_PASSWORD=test -d zlt-db:mysql-8.0.25
\ No newline at end of file
# docker run --name zlt-uaa \
# -e spring_cloud_nacos_server_addr=10.0.0.12:8848 \
# -e zlt_datasource_ip=10.0.0.12 \
# -e zlt_datasource_username=root \
# -e zlt_datasource_password=redhat \
# -e spring_redis_host=10.0.0.12 \
# -d zlt-uaa:4.5
\ No newline at end of file
FROM nginx:1.21.0
LABEL MAINTAINER=Andy
RUN rm -rf /usr/share/nginx/html/*
COPY src/main/resources/static/* /usr/share/nginx/html/
# docker run --name zlt-web \
# -v /host/path/apiUrl.js:/usr/share/nginx/html/module/apiUrl.js:ro
# -d zlt-web:4.5
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册