add docker

This commit is contained in:
qinzy
2024-02-27 14:57:32 -07:00
parent 51dcd5fc58
commit 5bcbf94746
3 changed files with 28 additions and 1 deletions

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM python:3.9-slim
WORKDIR /app
COPY . /app
RUN apt-get update && apt-get install -y \
build-essential libsndfile1 \
&& rm -rf /var/lib/apt/lists/*
RUN pip install -e .
RUN python -m unidic download
RUN python melo/init_downloads.py
CMD ["python", "./melo/app.py", "--port", "8800"]