highway
ShiChangzhou 1 year ago
parent 566d2b4d93
commit de1e664328

@ -20,6 +20,7 @@ echo
echo --------------------------------mvn package...--------------------------------
::call mvn clean package -Dmaven.test.skip=true
copy .\libsapjco3.so .\target\libsapjco3.so
copy .\sapjco3.jar .\target\sapjco3.jar
cd .\target
SET df=Dockerfile
if exist %df% (
@ -28,6 +29,8 @@ if exist %df% (
echo --------------------------------´´½¨Dockerfile--------------------------------
echo FROM 192.168.202.36:30002/library/openjdk:8u131-jdk-alpine >> Dockerfile
echo ADD libsapjco3.so /usr/lib/libsapjco3.so >> Dockerfile
echo ADD sapjco3.jar /usr/lib/sapjco3.jar >> Dockerfile
echo RUN chmod a+x -R /usr/lib/libsapjco3.so >> Dockerfile
echo ENV LD_LIBRARY_PATH /usr/lib >> Dockerfile
echo COPY %jarName% /application.jar >> Dockerfile
echo RUN echo "Asia/Shanghai" ^> /etc/timezone >> Dockerfile

Loading…
Cancel
Save