update
This commit is contained in:
20
coolstore-partner-webc/Dockerfile
Normal file
20
coolstore-partner-webc/Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
FROM openjdk:8u342
|
||||||
|
# 作者
|
||||||
|
MAINTAINER hsay
|
||||||
|
# VOLUME 指定了临时文件目录为/tmp。
|
||||||
|
# 其效果是在主机 /var/lib/docker 目录下创建了一个临时文件,并链接到容器的/tmp
|
||||||
|
VOLUME /tmp
|
||||||
|
# 设置时区
|
||||||
|
ENV TZ=Asia/Shanghai
|
||||||
|
|
||||||
|
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||||
|
RUN echo "Asia/Shanghai" > /etc/timezone
|
||||||
|
|
||||||
|
# 将jar包添加到容器中并更名为app.jar
|
||||||
|
ARG JAR_FILE
|
||||||
|
ADD target/coolstore-partner-webc-1.0.0.jar /app.jar
|
||||||
|
#配置项目端口
|
||||||
|
|
||||||
|
# 运行jar包
|
||||||
|
RUN bash -c 'touch /app.jar'
|
||||||
|
ENTRYPOINT ["sh","-c","java -jar $JAVA_OPTS /app.jar $PARAMS"]
|
||||||
@@ -35,31 +35,6 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|
||||||
<profiles>
|
|
||||||
<profile>
|
|
||||||
<id>local</id>
|
|
||||||
<activation>
|
|
||||||
<activeByDefault>true</activeByDefault>
|
|
||||||
</activation>
|
|
||||||
<properties>
|
|
||||||
<profileActive>local</profileActive>
|
|
||||||
</properties>
|
|
||||||
</profile>
|
|
||||||
<profile>
|
|
||||||
<id>ab</id>
|
|
||||||
<properties>
|
|
||||||
<profileActive>ab</profileActive>
|
|
||||||
</properties>
|
|
||||||
</profile>
|
|
||||||
<profile>
|
|
||||||
<id>online</id>
|
|
||||||
<properties>
|
|
||||||
<profileActive>online</profileActive>
|
|
||||||
</properties>
|
|
||||||
</profile>
|
|
||||||
</profiles>
|
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|||||||
@@ -43,13 +43,13 @@
|
|||||||
|
|
||||||
<logger name="com.cool.store.mapper" level="DEBUG" additivity="true" />
|
<logger name="com.cool.store.mapper" level="DEBUG" additivity="true" />
|
||||||
<!--灰度、线上、预防 不输出到console-->
|
<!--灰度、线上、预防 不输出到console-->
|
||||||
<springProfile name="hd,online,pre">
|
<springProfile name="hd,online,pre,release">
|
||||||
<root level="info">
|
<root level="info">
|
||||||
<appender-ref ref="rollingFile"/>
|
<appender-ref ref="rollingFile"/>
|
||||||
</root>
|
</root>
|
||||||
</springProfile>
|
</springProfile>
|
||||||
|
|
||||||
<springProfile name="ab,dev,test,local">
|
<springProfile name="ab,dev,test,local,release">
|
||||||
<root level="info">
|
<root level="info">
|
||||||
<appender-ref ref="stdout"/>
|
<appender-ref ref="stdout"/>
|
||||||
</root>
|
</root>
|
||||||
|
|||||||
Reference in New Issue
Block a user