提交 5c6ff9a4 编写于 作者: yanshaowei's avatar yanshaowei

调整dockerfile

上级 2cd457fc
...@@ -278,7 +278,7 @@ TARGET=PSSYSAPP ...@@ -278,7 +278,7 @@ TARGET=PSSYSAPP
<argument>buildx</argument> <argument>buildx</argument>
<argument>build</argument> <argument>build</argument>
<argument>--platform</argument> <argument>--platform</argument>
<argument>linux/amd64,linux/arm64</argument> <argument>linux/arm64</argument>
<argument>-t</argument> <argument>-t</argument>
<argument>${r'${docker.image.prefix}/${project.artifactId}'}:latest</argument> <argument>${r'${docker.image.prefix}/${project.artifactId}'}:latest</argument>
<argument>${r'${project.basedir}'}/src/main/dockerwar</argument> <argument>${r'${project.basedir}'}/src/main/dockerwar</argument>
......
...@@ -9,6 +9,7 @@ ENV LANG C.UTF-8 ...@@ -9,6 +9,7 @@ ENV LANG C.UTF-8
WORKDIR /opt/tongtech WORKDIR /opt/tongtech
ADD ${pub.getCodeName()?lower_case}-app-${app.getPKGCodeName()?lower_case}.war . ADD ${pub.getCodeName()?lower_case}-app-${app.getPKGCodeName()?lower_case}.war .
CMD echo -e 'export LANG="zh_CN.UTF-8"\nexport LC_ALL="zh_CN.UTF-8"' > /etc/locale.conf && \ RUN echo -e 'export LANG="zh_CN.UTF-8"\nexport LC_ALL="zh_CN.UTF-8"' > /etc/locale.conf
unzip -oq /opt/tongtech/${pub.getCodeName()?lower_case}-app-${app.getPKGCodeName()?lower_case}.war -d /opt/tongtech/TongWeb7.0/deployment/jcyweb && \ RUN unzip -oq ${pub.getCodeName()?lower_case}-app-${app.getPKGCodeName()?lower_case}.war -d ./TongWeb7.0/deployment/jcyweb
/opt/tongtech/TongWeb7.0/bin/startserver.sh
ENTRYPOINT /opt/tongtech/TongWeb7.0/bin/startserver.sh
...@@ -199,7 +199,7 @@ TARGET=PSSYSSERVICEAPI ...@@ -199,7 +199,7 @@ TARGET=PSSYSSERVICEAPI
<argument>buildx</argument> <argument>buildx</argument>
<argument>build</argument> <argument>build</argument>
<argument>--platform</argument> <argument>--platform</argument>
<argument>linux/amd64,linux/arm64</argument> <argument>linux/arm64</argument>
<argument>-t</argument> <argument>-t</argument>
<argument>${r'${docker.image.prefix}/${project.artifactId}'}:latest</argument> <argument>${r'${docker.image.prefix}/${project.artifactId}'}:latest</argument>
<argument>${r'${project.basedir}'}/src/main/dockerwar</argument> <argument>${r'${project.basedir}'}/src/main/dockerwar</argument>
......
...@@ -9,6 +9,7 @@ ENV LANG C.UTF-8 ...@@ -9,6 +9,7 @@ ENV LANG C.UTF-8
WORKDIR /opt/tongtech WORKDIR /opt/tongtech
ADD ${pub.getCodeName()?lower_case}-provider-${api.getCodeName()?lower_case}.war . ADD ${pub.getCodeName()?lower_case}-provider-${api.getCodeName()?lower_case}.war .
CMD echo -e 'export LANG="zh_CN.UTF-8"\nexport LC_ALL="zh_CN.UTF-8"' > /etc/locale.conf && \ RUN echo -e 'export LANG="zh_CN.UTF-8"\nexport LC_ALL="zh_CN.UTF-8"' > /etc/locale.conf
unzip -oq /opt/tongtech/${pub.getCodeName()?lower_case}-provider-${api.getCodeName()?lower_case}.war -d /opt/tongtech/TongWeb7.0/deployment/jcyweb && \ RUN unzip -oq ${pub.getCodeName()?lower_case}-provider-${api.getCodeName()?lower_case}.war -d ./TongWeb7.0/deployment/jcyweb
/opt/tongtech/TongWeb7.0/bin/startserver.sh
ENTRYPOINT /opt/tongtech/TongWeb7.0/bin/startserver.sh
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册