Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-cloud-core
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xingmin
yd-cloud-core
Commits
f8c25963
Commit
f8c25963
authored
Sep 05, 2025
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
网关docker配置
parent
0570eb06
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
2 deletions
+34
-2
yd-auth-core/pom.xml
+2
-2
yd-gateway/Dockerfile
+12
-0
yd-gateway/pom.xml
+20
-0
No files found.
yd-auth-core/pom.xml
View file @
f8c25963
...
...
@@ -148,7 +148,7 @@
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<version>
2.6.6
</version>
<version>
${springboot.version}
</version>
<executions>
<execution>
<goals>
...
...
@@ -157,7 +157,7 @@
</execution>
</executions>
<configuration>
<mainClass>
com.yd.auth.core.AuthApplication
</mainClass>
<!-- 替换为您的实际主类 -->
<mainClass>
com.yd.auth.core.AuthApplication
</mainClass>
</configuration>
</plugin>
</plugins>
...
...
yd-gateway/Dockerfile
0 → 100644
View file @
f8c25963
# 基础镜像
FROM
openjdk:8
# 维护人
LABEL
maintainer="zxm<2060197959@qq.com>"
# 创建目录
RUN
mkdir
-p
/home/app
# 拷贝项目jar
COPY
target/yd-gateway-1.0-SNAPSHOT.jar /home/app/yd-gateway.jar
# 执行命令启动jar
ENTRYPOINT
["java", "-jar", "/home/app/yd-gateway.jar"]
# 暴露端口
EXPOSE
9002
yd-gateway/pom.xml
View file @
f8c25963
...
...
@@ -66,4 +66,24 @@
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<version>
${springboot.version}
</version>
<executions>
<execution>
<goals>
<goal>
repackage
</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>
com.yd.gateway.GatewayApplication
</mainClass>
</configuration>
</plugin>
</plugins>
</build>
</project>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment