Skip to content

Commit

Permalink
chore: docker镜像中安装OcrLiteOnnx
Browse files Browse the repository at this point in the history
  • Loading branch information
jamebal committed Dec 13, 2024
1 parent 676b49e commit d972bf8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,17 @@ RUN apt-get update && \
wget https://github.com/jamebal/OcrLiteOnnx/releases/download/v.1.8.2/models.7z && \
7z x models.7z -o/jmalcloud/ && \
7z x ubuntu-22.04-${ARCH}-bin.7z -o/usr/local/ && \
mv /usr/local/ubuntu-22.04-amd64-bin/Linux-BIN/OcrLiteOnnx /usr/local/bin/OcrLiteOnnx && \
mv /usr/local/ubuntu-22.04-${ARCH}-bin/Linux-BIN/OcrLiteOnnx /usr/local/bin/OcrLiteOnnx && \
# 卸载 wget 并清理下载的文件和APT缓存
apt-get remove -y wget unzip && \
apt-get clean && \
rm -f jellyfin-ffmpeg5_5.1.4-3-jammy_${ARCH}.deb && \
rm -rf /var/lib/apt/lists/* && \
rm -f /jmalcloud/mxcad_x86_64.zip && \
rm -rf /usr/local/ubuntu-22.04-amd64-bin && \
rm -rf /usr/local/ubuntu-22.04-${ARCH}-bin && \
rm -f ubuntu-22.04-${ARCH}-bin.7z && \
rm -f models.7z && \
rm -rf /usr/local/__MACOSX

# 将/usr/lib/jellyfin-ffmpeg添加到PATH
ENV PATH=/usr/lib/jellyfin-ffmpeg:$PATH
Expand Down

0 comments on commit d972bf8

Please sign in to comment.