Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
22388o committed Dec 10, 2024
1 parent 50e2fb8 commit 9d7b6ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,8 @@ vendor/bundle/

## Docker
# Ignore Docker files
Dockerfile
docker-compose.yml
docker-compose.override.yml
**/Dockerfile
**/docker-compose.yml
**/docker-compose.override.yml

Expand Down
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ ENV PATH=/opt/gradle/gradle-7.4.2/bin:$PATH

# Set up Kotlin app build environment
WORKDIR /app

# Explicitly copy gradlew and gradle directory (in case copy context is problematic)
COPY gradlew /app/gradlew
COPY gradle /app/gradle
COPY . /app

# Ensure gradlew is present and executable
RUN ls -l ./gradlew && chmod +x ./gradlew
RUN ls -l /app/gradlew && chmod +x /app/gradlew

# Build Kotlin app
RUN ./gradlew build
Expand Down

0 comments on commit 9d7b6ec

Please sign in to comment.