mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 07:46:40 +08:00
阿里云 Dockerfile 调整
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM maven:3-eclipse-temurin-17 as build
|
||||
FROM registry.cn-beijing.aliyuncs.com/lihongjie/maven:3-eclipse-temurin-17 as build
|
||||
WORKDIR /code
|
||||
COPY pom.xml .
|
||||
COPY settings.xml .
|
||||
@@ -9,10 +9,9 @@ COPY src ./src
|
||||
RUN mvn clean install -DskipTests -P build --settings settings.xml && \
|
||||
java -Djarmode=layertools -jar target/*.jar extract --destination target/extracted
|
||||
|
||||
FROM eclipse-temurin:17-jdk-alpine
|
||||
FROM registry.cn-beijing.aliyuncs.com/lihongjie/eclipse-temurin:17-jdk-alpine
|
||||
WORKDIR /app
|
||||
|
||||
COPY GeoLite2-City ./GeoLite2-City
|
||||
ARG JAR_FILE=target/*.jar
|
||||
COPY --from=build /code/target/extracted/dependencies/ ./
|
||||
COPY --from=build /code/target/extracted/spring-boot-loader/ ./
|
||||
|
||||
Reference in New Issue
Block a user