Skip to content

Commit

Permalink
fix: mvnw not found perms
Browse files Browse the repository at this point in the history
  • Loading branch information
nc1z committed Jul 14, 2024
1 parent d7c8dd9 commit 3073338
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ FROM openjdk:17-jdk-slim
# Set the working directory in the container
WORKDIR /app

# Copy the Maven wrapper scripts and the .mvn directory
# Copy the Maven wrapper files
COPY .mvn .mvn
COPY mvnw .
COPY mvnw.cmd .

# Copy the project files to the working directory
# Ensure the mvnw script has executable permissions
RUN chmod +x mvnw

# Copy the pom.xml file and resolve dependencies
COPY pom.xml .
RUN ./mvnw dependency:resolve

Expand Down

0 comments on commit 3073338

Please sign in to comment.