Dockerfile改动

master
fst1996 2023-11-28 09:50:44 +08:00
parent 3894f18c54
commit 4ab4de8a9a
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ EXPOSE 9999
VOLUME /home/logs/god-data-server
# 复制jar文件到docker内部
COPY /target/mqtt-redis-demo-1.0-SNAPSHOT.jar /home/app.jar
COPY /target/mqtt-kafkademo-1.0-SNAPSHOT.jar /home/app.jar
#工作目录 exec -it 进来默认就是这个目
WORKDIR /home

View File

@ -4,8 +4,8 @@ import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class MqttRedisApplication {
public class MqttKafkaApplication {
public static void main(String[] args) {
SpringApplication.run(MqttRedisApplication.class);
SpringApplication.run(MqttKafkaApplication.class);
}
}