diff --git a/.gitignore b/.gitignore index 51776fdd..4045086d 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/Dockerfile b/Dockerfile index f616299f..ca1c43ba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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