Skip to content

Commit

Permalink
fix: build pilk error
Browse files Browse the repository at this point in the history
  • Loading branch information
hanfangyuan4396 committed Dec 28, 2024
1 parent 084bf0f commit 8e114c9
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions docker/Dockerfile.latest
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,28 @@ ENV BUILD_PREFIX=/app

ADD . ${BUILD_PREFIX}

# 安装系统依赖和编译工具
RUN apt-get update \
&&apt-get install -y --no-install-recommends bash ffmpeg espeak libavcodec-extra\
&& apt-get install -y --no-install-recommends \
bash \
ffmpeg \
espeak \
libavcodec-extra \
gcc \
g++ \
make \
&& cd ${BUILD_PREFIX} \
&& cp config-template.json config.json \
&& /usr/local/bin/python -m pip install --no-cache --upgrade pip \
&& pip install --no-cache -r requirements.txt \
&& pip install --no-cache -r requirements-optional.txt \
&& pip install azure-cognitiveservices-speech
&& pip install --no-cache azure-cognitiveservices-speech \
# 清理编译工具和缓存
&& apt-get remove -y gcc g++ make \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf ~/.cache/pip/*

WORKDIR ${BUILD_PREFIX}

Expand Down

0 comments on commit 8e114c9

Please sign in to comment.