From 52c6fbc7f567eb1d787f27ba80855bd2d0e16422 Mon Sep 17 00:00:00 2001 From: esoe Date: Thu, 4 Apr 2024 17:25:54 +0300 Subject: [PATCH] dockerized --- .vscode/settings.json | 3 +++ docker-compose.yaml | 0 resource-service-api/dockerfile | 10 ++++------ resource-service-api/pom.xml | 5 +++-- 4 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 .vscode/settings.json create mode 100644 docker-compose.yaml diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..3466b3f --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "java.compile.nullAnalysis.mode": "automatic" +} \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..e69de29 diff --git a/resource-service-api/dockerfile b/resource-service-api/dockerfile index 6dda683..f77d76a 100644 --- a/resource-service-api/dockerfile +++ b/resource-service-api/dockerfile @@ -1,7 +1,5 @@ FROM openjdk:17-jdk-alpine -# WORKDIR /app -# COPY app/build/lib/* build/lib/ -# COPY app/build/libs/app.jar build/ -# WORKDIR /app/build -# ENTRYPOINT java -jar app.jar -# ENTRYPOINT [ "executable" ] \ No newline at end of file +COPY target/resource-service-api-0.1.jar message-server-1.0.0.jar +ENTRYPOINT ["java","-jar","/message-server-1.0.0.jar"] +# docker image build -t resource-service:latest . +# docker run -p8887:8888 message-server:latest \ No newline at end of file diff --git a/resource-service-api/pom.xml b/resource-service-api/pom.xml index 7ca5e0f..96196b5 100644 --- a/resource-service-api/pom.xml +++ b/resource-service-api/pom.xml @@ -10,9 +10,10 @@ ru.molokoin resource-service-api - 0.0.1-SNAPSHOT + 0.1 resource-service-api - Demo project for Spring Boot + jar + edu-resources 17