update
This commit is contained in:
22
Dockerfile
Normal file
22
Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
#FROM bellsoft/liberica-openjdk-debian:17
|
||||||
|
FROM maven:3.9.8-eclipse-temurin-17 as build
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY settings.xml /root/.m2/settings.xml
|
||||||
|
|
||||||
|
ADD . /app
|
||||||
|
RUN mvn package -DskipTests=true clean install
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
FROM bellsoft/liberica-openjdk-debian:17
|
||||||
|
|
||||||
|
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
#ADD ./src/main/resources/jeecg ./config/jeecg
|
||||||
|
COPY --from=build /app/physical-launcher/target/physical-launcher-3.7.0.jar physical-launcher-3.7.0.jar
|
||||||
|
|
||||||
|
CMD sleep 60;java -Djava.security.egd=file:/dev/./urandom -jar physical-launcher-3.7.0.jar --spring.profiles.active=prod
|
||||||
@@ -58,7 +58,7 @@ services:
|
|||||||
- physical-redis
|
- physical-redis
|
||||||
- physical-minio
|
- physical-minio
|
||||||
container_name: physical-launcher
|
container_name: physical-launcher
|
||||||
image: reg.laysan.biz/physical/physical-launcher
|
image: registry.cn-shanghai.aliyuncs.com/physical/physical-boot
|
||||||
hostname: physical-launcher
|
hostname: physical-launcher
|
||||||
ports:
|
ports:
|
||||||
- 28080:8080
|
- 28080:8080
|
||||||
@@ -69,7 +69,7 @@ services:
|
|||||||
# build:
|
# build:
|
||||||
# context: ../physical-web
|
# context: ../physical-web
|
||||||
container_name: physical-web
|
container_name: physical-web
|
||||||
image: reg.laysan.biz/physical/physical-web
|
image: registry.cn-shanghai.aliyuncs.com/physical/physical-web
|
||||||
depends_on:
|
depends_on:
|
||||||
- physical-launcher
|
- physical-launcher
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
FROM bellsoft/liberica-openjdk-debian:17
|
#FROM bellsoft/liberica-openjdk-debian:17
|
||||||
|
FROM maven:3.9.8-eclipse-temurin-17
|
||||||
|
|
||||||
MAINTAINER lslvxy@163.com
|
MAINTAINER lslvxy@163.com
|
||||||
|
|
||||||
|
|||||||
79
settings.xml
Normal file
79
settings.xml
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
|
||||||
|
<!-- 你自己的仓库地址 -->
|
||||||
|
<mirrors>
|
||||||
|
<mirror>
|
||||||
|
<id>aliyun</id>
|
||||||
|
<mirrorOf>*,!github,!jeecg,!jeecg-snapshots,!getui-nexus</mirrorOf>
|
||||||
|
<name>阿里云公共仓库</name>
|
||||||
|
<url>https://maven.aliyun.com/repository/public</url>
|
||||||
|
</mirror>
|
||||||
|
<mirror>
|
||||||
|
<id>huawei</id>
|
||||||
|
<mirrorOf>*,!github,!jeecg,!jeecg-snapshots,!getui-nexus</mirrorOf>
|
||||||
|
<name>华为开源镜像站</name>
|
||||||
|
<url>https://mirrors.huaweicloud.com/repository/maven/</url>
|
||||||
|
</mirror>
|
||||||
|
</mirrors>
|
||||||
|
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>dev</id>
|
||||||
|
<activation>
|
||||||
|
<activeByDefault>true</activeByDefault>
|
||||||
|
</activation>
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>center</id>
|
||||||
|
<url>https://maven.aliyun.com/repository/public</url>
|
||||||
|
<releases>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</releases>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</snapshots>
|
||||||
|
</repository>
|
||||||
|
<repository>
|
||||||
|
<id>spring</id>
|
||||||
|
<url>https://maven.aliyun.com/repository/spring</url>
|
||||||
|
<releases>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</releases>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</snapshots>
|
||||||
|
</repository>
|
||||||
|
<repository>
|
||||||
|
<id>jeecg</id>
|
||||||
|
<name>jeecg Repository</name>
|
||||||
|
<url>https://maven.jeecg.org/nexus/content/repositories/jeecg</url>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>false</enabled>
|
||||||
|
</snapshots>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
|
||||||
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>github</id>
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>central</id>
|
||||||
|
<url>https://repo1.maven.org/maven2</url>
|
||||||
|
</repository>
|
||||||
|
<repository>
|
||||||
|
<id>github</id>
|
||||||
|
<url>https://maven.pkg.github.com/loadup-cloud/loadup-packages</url>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</snapshots>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
|
|
||||||
|
</settings>
|
||||||
Reference in New Issue
Block a user