21 lines
791 B
Docker
21 lines
791 B
Docker
FROM python:3.8.14-buster
|
|
MAINTAINER PAN Lei<panleicim@gmail.com>
|
|
|
|
WORKDIR /app
|
|
RUN echo "==> Updating and installing packages" && \
|
|
sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list &&\
|
|
echo 'deb-src http://deb.debian.org/debian buster main' >> /etc/apt/sources.list &&\
|
|
apt-get update && \
|
|
apt-get install -y software-properties-common && \
|
|
apt-get install -y libasound2-dev && \
|
|
apt-get install -y build-essential gcc automake autoconf libtool && \
|
|
apt-get build-dep -y pocketsphinx && \
|
|
apt-get install -y bison python-pyaudio && \
|
|
apt-get clean
|
|
|
|
COPY requirements.txt requirements.txt
|
|
RUN pip3 install --upgrade pip
|
|
RUN pip3 install -r requirements.txt
|
|
COPY src src
|
|
COPY server.py server.py
|
|
CMD [ "python3","-u", "server.py", "--host=0.0.0.0"] |