Felix commited on
Commit
7f0156e
·
1 Parent(s): 5665375
Dockerfile CHANGED
@@ -6,6 +6,12 @@ EXPOSE 8350
6
  RUN mvn clean install spring-boot:repackage
7
  RUN cd /target
8
  RUN java -jar /target/fixedmanager-vue-2.4.0.jar
 
 
 
 
 
 
9
  # Make the script executable
10
  # RUN chmod 755 /entrypoint.sh
11
 
 
6
  RUN mvn clean install spring-boot:repackage
7
  RUN cd /target
8
  RUN java -jar /target/fixedmanager-vue-2.4.0.jar
9
+
10
+ # Copy the built jar file into the image
11
+ COPY target/fixedmanager-vue-2.4.0.jar app.jar
12
+
13
+ # Set the entry point to run your application
14
+ ENTRYPOINT ["java","-jar","/app.jar"]
15
  # Make the script executable
16
  # RUN chmod 755 /entrypoint.sh
17
 
pom.xml CHANGED
@@ -193,7 +193,7 @@
193
  <artifactId>spring-boot-maven-plugin</artifactId>
194
  <version>2.4.13</version>
195
  <configuration>
196
- <mainClass>com.fixedasset.VueAdminLearnApplication</mainClass>
197
  <excludes>
198
  <exclude>
199
  <groupId>org.projectlombok</groupId>
 
193
  <artifactId>spring-boot-maven-plugin</artifactId>
194
  <version>2.4.13</version>
195
  <configuration>
196
+ <mainClass>com.fixedasset.VueAdminApplication</mainClass>
197
  <excludes>
198
  <exclude>
199
  <groupId>org.projectlombok</groupId>
src/main/java/com/fixedasset/{VueAdminLearnApplication.java → VueAdminApplication.java} RENAMED
@@ -8,10 +8,10 @@ import org.springframework.web.servlet.config.annotation.EnableWebMvc;
8
 
9
  @EnableWebMvc
10
  @SpringBootApplication
11
- public class VueAdminLearnApplication {
12
- private static final Logger log = LoggerFactory.getLogger(VueAdminLearnApplication.class);
13
 
14
  public static void main(String[] args) {
15
- SpringApplication.run(VueAdminLearnApplication.class);
16
  }
17
  }
 
8
 
9
  @EnableWebMvc
10
  @SpringBootApplication
11
+ public class VueAdminApplication {
12
+ private static final Logger log = LoggerFactory.getLogger(VueAdminApplication.class);
13
 
14
  public static void main(String[] args) {
15
+ SpringApplication.run(VueAdminApplication.class);
16
  }
17
  }