From 4b036bf9d9055f5b6a6ffc386e20ab87c9a74926 Mon Sep 17 00:00:00 2001 From: sabexzero Date: Sat, 20 Apr 2024 23:59:24 +0300 Subject: [PATCH] Test docker actions #14, change chmod --- .dockerignore | 1 - Dockerfile | 11 +++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.dockerignore b/.dockerignore index feedf00..c7e9ca3 100644 --- a/.dockerignore +++ b/.dockerignore @@ -10,7 +10,6 @@ **/.git **/.gitignore **/.project -**/.settings **/.toolstarget **/.vs **/.vscode diff --git a/Dockerfile b/Dockerfile index 1136237..c5c30f9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,8 +4,8 @@ WORKDIR /app COPY build.gradle . COPY settings.gradle . -COPY gradlew . -COPY gradle ./gradle/ +COPY gradlew .sss +COPY .gradle ./gradle/ COPY src ./src/ @@ -14,20 +14,15 @@ RUN apt-get update && \ apt-get clean \ RUN sudo dos2unix gradlew -RUN sudo chmod +x gradlew +RUN sudo chmod 777 gradlew RUN sudo ./gradlew lib:build -# Use a lighter base image for the runtime FROM openjdk:latest -# Set the working directory in the container WORKDIR /app -# Copy the built JAR file from the build stage to the runtime image COPY --from=build /app/build/libs/*.jar app.jar -# Expose the port the application runs on EXPOSE 8080 -# Specify the command to run the application CMD ["java", "-jar", "app.jar"] \ No newline at end of file