mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-18 17:38:48 +08:00
sso-打包
This commit is contained in:
parent
bd44b53e0a
commit
586942d623
26
ruoyi-modules/ruoyi-sso-server/Dockerfile
Normal file
26
ruoyi-modules/ruoyi-sso-server/Dockerfile
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# 贝尔实验室 Spring 官方推荐镜像 JDK下载地址 https://bell-sw.com/pages/downloads/
|
||||||
|
FROM bellsoft/liberica-openjdk-debian:17.0.11-cds
|
||||||
|
#FROM bellsoft/liberica-openjdk-debian:21.0.3-cds
|
||||||
|
#FROM findepi/graalvm:java17-native
|
||||||
|
|
||||||
|
LABEL maintainer="Lion Li"
|
||||||
|
|
||||||
|
RUN mkdir -p /ruoyi/server/logs \
|
||||||
|
/ruoyi/server/temp \
|
||||||
|
/ruoyi/skywalking/agent
|
||||||
|
|
||||||
|
WORKDIR /ruoyi/server
|
||||||
|
|
||||||
|
ENV SERVER_PORT=8080 LANG=C.UTF-8 LC_ALL=C.UTF-8 JAVA_OPTS=""
|
||||||
|
|
||||||
|
EXPOSE ${SERVER_PORT}
|
||||||
|
|
||||||
|
ADD ./target/ruoyi-sso-server.jar ./app.jar
|
||||||
|
|
||||||
|
ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom -Dserver.port=${SERVER_PORT} \
|
||||||
|
# 应用名称 如果想区分集群节点监控 改成不同的名称即可
|
||||||
|
#-Dskywalking.agent.service_name=ruoyi-server \
|
||||||
|
#-javaagent:/ruoyi/skywalking/agent/skywalking-agent.jar \
|
||||||
|
-XX:+HeapDumpOnOutOfMemoryError -XX:+UseZGC ${JAVA_OPTS} \
|
||||||
|
-jar app.jar
|
||||||
|
|
||||||
@ -8,6 +8,7 @@
|
|||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>ruoyi-sso-server</artifactId>
|
<artifactId>ruoyi-sso-server</artifactId>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<description> sso-server </description>
|
<description> sso-server </description>
|
||||||
|
|
||||||
@ -157,6 +158,27 @@
|
|||||||
<!-- </dependency>-->
|
<!-- </dependency>-->
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
<build>
|
||||||
|
<finalName>${project.artifactId}</finalName>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
<version>${spring-boot.version}</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>repackage</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
|
<version>${maven-jar-plugin.version}</version>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
@ -113,6 +113,20 @@ services:
|
|||||||
# - /docker/skywalking/agent/:/ruoyi/skywalking/agent
|
# - /docker/skywalking/agent/:/ruoyi/skywalking/agent
|
||||||
privileged: true
|
privileged: true
|
||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
|
ruoyi-sso-server:
|
||||||
|
image: ruoyi/ruoyi-sso-server:5.2.2
|
||||||
|
container_name: ruoyi-sso-server
|
||||||
|
environment:
|
||||||
|
# 时区上海
|
||||||
|
TZ: Asia/Shanghai
|
||||||
|
SERVER_PORT: 19000
|
||||||
|
volumes:
|
||||||
|
# 配置文件
|
||||||
|
- /docker/server1/logs/:/ruoyi/server/logs/
|
||||||
|
# skywalking 探针
|
||||||
|
# - /docker/skywalking/agent/:/ruoyi/skywalking/agent
|
||||||
|
privileged: true
|
||||||
|
network_mode: "host"
|
||||||
|
|
||||||
ruoyi-server2:
|
ruoyi-server2:
|
||||||
image: ruoyi/ruoyi-server:5.2.2
|
image: ruoyi/ruoyi-server:5.2.2
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user