docker 打包调整
This commit is contained in:
parent
03b4d17c42
commit
9ce6b703f8
@ -7,9 +7,9 @@ RUN mkdir -p $HOME_PATH
|
||||
WORKDIR $HOME_PATH
|
||||
|
||||
RUN mkdir -p /usr/bin/ffmpeg
|
||||
ADD ../ffmpeg/ffmpeg /usr/bin/ffmpeg/ffmpeg
|
||||
ADD ../ffmpeg/ffprobe /usr/bin/ffmpeg/ffprobe
|
||||
ADD ../ffmpeg/model /usr/bin/ffmpeg/model
|
||||
ADD ./ffmpeg/ffmpeg /usr/bin/ffmpeg/ffmpeg
|
||||
ADD ./ffmpeg/ffprobe /usr/bin/ffmpeg/ffprobe
|
||||
ADD ./ffmpeg/model /usr/bin/ffmpeg/model
|
||||
|
||||
ADD target/gb28181-mocking-starter.jar /opt/gb28181-docking-platform-mocking/starter.jar
|
||||
|
||||
|
@ -4,11 +4,12 @@ mkdir repository
|
||||
curDir=`pwd`
|
||||
repository=${curDir}/repository
|
||||
|
||||
if ! test -e ${curDir}/ffmpeg/ffmpeg;then
|
||||
if ! test -e ${curDir}/gb28181-mocking-starter/ffmpeg;then
|
||||
xz -d ${curDir}/ffmpeg/ffmpeg-git-amd64-static.tar.xz
|
||||
tar -xvf ${curDir}/ffmpeg/ffmpeg-git-amd64-static.tar -C ${curDir}/ffmpeg/
|
||||
mv ${curDir}/ffmpeg/ffmpeg-git*-static/* ${curDir}/ffmpeg
|
||||
rm -rf ${curDir}/ffmpeg/ffmpeg-git*-static
|
||||
mv ${curDir}/ffmpeg ${curDir}/gb28181-mocking-starter/ffmpeg
|
||||
fi
|
||||
|
||||
docker run --name maven --rm \
|
||||
|
Loading…
Reference in New Issue
Block a user