docker update
This commit is contained in:
@ -1,15 +1,10 @@
|
||||
FROM maven:3.9.4-eclipse-temurin-11 AS builder
|
||||
WORKDIR /workdir/server
|
||||
|
||||
# Add Google's fast Maven mirror for better download speeds in Asia
|
||||
RUN mkdir -p /root/.m2
|
||||
RUN echo '<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 https://maven.apache.org/xsd/settings-1.0.0.xsd"><mirrors><mirror><id>google-maven</id><name>Google Maven Central</name><url>https://maven-central.storage-download.googleapis.com/maven2/</url><mirrorOf>central</mirrorOf></mirror></mirrors></settings>' > /root/.m2/settings.xml
|
||||
|
||||
RUN mvn -version
|
||||
COPY pom.xml /workdir/server/pom.xml
|
||||
|
||||
COPY src /workdir/server/src
|
||||
RUN mvn package -Dmaven.test.skip=true -B -T 2 -Dmaven.artifact.threads=4
|
||||
RUN mvn package -Dmaven.test.skip=true
|
||||
RUN ls -la target/
|
||||
|
||||
FROM eclipse-temurin:11-jre-focal
|
||||
|
||||
Reference in New Issue
Block a user