File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed
Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change 1- # ---- Estágio de Build com Java 23 ----
1+ # ---- Estágio de Build com Java 25 ----
22FROM maven:3.9.8-eclipse-temurin-25-jammy AS build
33
4- # Define variáveis para a versão do Maven
5- ARG MAVEN_VERSION=3.9.6
6- # CORREÇÃO: Usando um link de download mais estável do repositório de arquivos da Apache
7- ARG MAVEN_URL=https://archive.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz
8-
9- # Instala ferramentas necessárias e baixa e instala o Maven.
10- RUN apt-get update && \
11- apt-get install -y curl && \
12- curl -fsSL ${MAVEN_URL} -o /tmp/maven.tar.gz && \
13- tar -xzf /tmp/maven.tar.gz -C /usr/share && \
14- ln -s /usr/share/apache-maven-${MAVEN_VERSION}/bin/mvn /usr/bin/mvn && \
15- rm /tmp/maven.tar.gz && \
16- apt-get purge -y --auto-remove curl
174
185# Define o diretório de trabalho.
196WORKDIR /app
You can’t perform that action at this time.
0 commit comments