From 9d7b6ecef4f380256a516a59ed57e89fbb0dd683 Mon Sep 17 00:00:00 2001 From: 22388o <22388o@users.noreply.github.com> Date: Tue, 10 Dec 2024 07:40:26 -0300 Subject: [PATCH] Fix --- .gitignore | 2 -- Dockerfile | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) 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