Skip to content

Commit 21dc77f

Browse files
authored
Merge pull request #2172 from BrightXiaoHan/hanbing
fix: dockerfile cpu
2 parents b1327fc + 4f2b915 commit 21dc77f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

docker/ubuntu18-cpu/Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
FROM registry.baidubce.com/paddlepaddle/paddle:2.2.2
22
LABEL maintainer="[email protected]"
33

4+
RUN apt-get update \
5+
&& apt-get install libsndfile-dev \
6+
&& apt-get clean \
7+
&& rm -rf /var/lib/apt/lists/*
8+
49
RUN git clone --depth 1 https://github.com/PaddlePaddle/PaddleSpeech.git /home/PaddleSpeech
510
RUN pip3 uninstall mccabe -y ; exit 0;
611
RUN pip3 install multiprocess==0.70.12 importlib-metadata==4.2.0 dill==0.3.4
712

8-
RUN cd /home/PaddleSpeech/audio
9-
RUN python setup.py bdist_wheel
10-
11-
RUN cd /home/PaddleSpeech
13+
WORKDIR /home/PaddleSpeech/
1214
RUN python setup.py bdist_wheel
13-
RUN pip install audio/dist/*.whl dist/*.whl
15+
RUN pip install dist/*.whl -i https://pypi.tuna.tsinghua.edu.cn/simple
1416

15-
WORKDIR /home/PaddleSpeech/
17+
CMD ['bash']

0 commit comments

Comments
 (0)