Skip to content

Commit

Permalink
feat: lógica condicional dentro do Dockerfile usando um shell script …
Browse files Browse the repository at this point in the history
…- Linux ou Windows
  • Loading branch information
wallanpsantos committed Dec 15, 2023
1 parent ba698e5 commit b9e2218
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ ADD . $HOME

# Install Maven dependency packages (locally to cache them)
COPY pom.xml .
RUN ./mvnw dependency:go-offline
# Adding Permissions and Running Maven dependency
RUN chmod +x ./mvnw || true && ./mvnw dependency:go-offline || ./mvnw.cmd dependency:go-offline

# Build application with Maven Wrapper
COPY src ./src
Expand Down

0 comments on commit b9e2218

Please sign in to comment.