Dockerfile

master
zhang chengzhi 2024-07-28 09:22:14 +08:00
parent c5c43f152f
commit 86def96f9e
3 changed files with 35 additions and 1 deletions

20
Dockerfile 100644
View File

@ -0,0 +1,20 @@
#|- home
# |- app.jar - 启动jar包
# |-logs - 日志文件
#指定构建镜像的起始镜像
FROM anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/dragonwell:17.0.4.0.4.8-standard-ga-8.6
#定义时区参数
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone
#挂载工作目录
VOLUME ["/home/logs/cloud-system"]
#拷贝执行jar包文件
COPY ./target/cloud-system.jar /home/app.jar
#构建启动命令
ENTRYPOINT ["java", "-jar"]
CMD ["home/app.jar"]

View File

@ -9,7 +9,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>cloud-modules-system</artifactId>
<artifactId>cloud-system</artifactId>
<description>
cloud-modules-system系统模块

View File

@ -1,5 +1,6 @@
package com.muyu.system.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.common.core.web.domain.BaseEntity;
import com.muyu.common.core.xss.Xss;
import lombok.AllArgsConstructor;
@ -11,6 +12,7 @@ import lombok.experimental.SuperBuilder;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import java.util.Date;
import java.util.List;
/**
@ -73,6 +75,18 @@ public class SysNotice extends BaseEntity {
private String createBy;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date startTime;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date endTime;
@Xss(message = "公告标题不能包含脚本字符")
@NotBlank(message = "公告标题不能为空")
@Size(min = 0, max = 50, message = "公告标题不能超过50个字符")