Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
EnigmaCurry committed Oct 12, 2024
1 parent aa46136 commit 31fb082
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
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 --upgrade pip
COPY setup.py requirements.txt /app
RUN pip install -r requirements.txt
COPY . /app
RUN pip install -e .
RUN python -m unidic download
RUN python melo/init_downloads.py

CMD ["python", "./melo/app.py", "--host", "0.0.0.0", "--port", "8888"]
CMD ["python", "./melo/app.py", "--host", "0.0.0.0", "--port", "8888"]
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
botocore>=1.35.39
cached_path>=1.6.2
txtsplit
torch
torchaudio
Expand Down Expand Up @@ -26,5 +28,3 @@ langid==1.1.6
tqdm
tensorboard==2.16.2
loguru==0.7.2
botocore>=1.34.98
cached_path>=1.6.2

0 comments on commit 31fb082

Please sign in to comment.