ADD Dockerfile

This commit is contained in:
Andy
2021-06-27 01:20:34 +08:00
parent c61167e21f
commit dfe6223cf7
4 changed files with 42 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
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
+13
View File
@@ -0,0 +1,13 @@
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
+7 -1
View 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
# 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
+9
View File
@@ -0,0 +1,9 @@
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