Browse Source

移动文件位置

zdd 2 years ago
parent
commit
9fb849308c
4 changed files with 2 additions and 6 deletions
  1. 0 0
      .drone.yml
  2. 0 0
      Dockerfile
  3. 1 1
      pom.xml
  4. 1 5
      src/run.sh

src/.drone.yml → .drone.yml


src/Dockerfile → Dockerfile


+ 1 - 1
pom.xml

@@ -71,7 +71,7 @@
                     <serverId>${docker.serviceId}</serverId>
                     <dockerHost>${docker.dockerHost}</dockerHost>
                     <imageName>docker.io/${project.artifactId}:${docker.image.version}</imageName>
-                    <dockerDirectory>${project.basedir}/src</dockerDirectory>
+                    <dockerDirectory>${project.basedir}</dockerDirectory>
                     <resources>
                         <resource>
                             <targetPath>/</targetPath>

+ 1 - 5
src/run.sh

@@ -17,9 +17,5 @@ echo '----rm image----'
 
 docker build -t ${app_name}:${app_version} .
 echo '----build image----'
-docker run -d --restart=always -p 5001:5001 \
--v /data/logs/airport/excel:/data/logs/airport/excel \
--e "SPRING_PROFILES_ACTIVE=dev" \
---network=host \
---name ${app_name} ${app_name}:${app_version} \
+docker run -d --restart=always --name ${app_name} ${app_name}:${app_version}
 echo '----start container----'