Browse Source

dockerized

master
esoe 8 months ago
parent
commit
52c6fbc7f5
  1. 3
      .vscode/settings.json
  2. 0
      docker-compose.yaml
  3. 10
      resource-service-api/dockerfile
  4. 5
      resource-service-api/pom.xml

3
.vscode/settings.json vendored

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
{
"java.compile.nullAnalysis.mode": "automatic"
}

0
docker-compose.yaml

10
resource-service-api/dockerfile

@ -1,7 +1,5 @@ @@ -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" ]
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

5
resource-service-api/pom.xml

@ -10,9 +10,10 @@ @@ -10,9 +10,10 @@
</parent>
<groupId>ru.molokoin</groupId>
<artifactId>resource-service-api</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>0.1</version>
<name>resource-service-api</name>
<description>Demo project for Spring Boot</description>
<packaging>jar</packaging>
<description>edu-resources</description>
<properties>
<java.version>17</java.version>
</properties>

Loading…
Cancel
Save