-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
30 lines (23 loc) · 701 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# pull official base image
FROM python:3.8-slim-buster
# set work directory
WORKDIR /usr/src/app
# set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
RUN apt-get -y update
RUN apt-get -y upgrade
# install ffmpeg
RUN apt-get install -y ffmpeg
# install paddlespeech
RUN apt install -y build-essential
RUN g++ -v
RUN pip install pytest-runner -i https://pypi.tuna.tsinghua.edu.cn/simple
RUN pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple
RUN pip install paddlespeech -i https://pypi.tuna.tsinghua.edu.cn/simple
# install dependencies
RUN pip install --upgrade pip
COPY ./requirements.txt .
RUN pip install -r requirements.txt
# copy project
COPY . .