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 @@
{
"java.compile.nullAnalysis.mode": "automatic"
}

0
docker-compose.yaml

10
resource-service-api/dockerfile

@ -1,7 +1,5 @@
FROM openjdk:17-jdk-alpine FROM openjdk:17-jdk-alpine
# WORKDIR /app COPY target/resource-service-api-0.1.jar message-server-1.0.0.jar
# COPY app/build/lib/* build/lib/ ENTRYPOINT ["java","-jar","/message-server-1.0.0.jar"]
# COPY app/build/libs/app.jar build/ # docker image build -t resource-service:latest .
# WORKDIR /app/build # docker run -p8887:8888 message-server:latest
# ENTRYPOINT java -jar app.jar
# ENTRYPOINT [ "executable" ]

5
resource-service-api/pom.xml

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

Loading…
Cancel
Save