Dockerfile改动
parent
3894f18c54
commit
4ab4de8a9a
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue