Skip to content

Commit

Permalink
update: dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Artrajz committed Sep 1, 2023
1 parent 3c07e64 commit 00b81cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ WORKDIR /app

ENV DEBIAN_FRONTEND=noninteractive

COPY . /app

RUN apt-get update && \
apt-get install -yq build-essential espeak-ng cmake wget && \
apt-get clean && \
Expand All @@ -25,7 +27,6 @@ RUN wget https://raw.githubusercontent.com/Artrajz/archived/main/openjtalk/openj

RUN pip install torch --index-url https://download.pytorch.org/whl/cpu --no-cache-dir

COPY requirements.txt /app
RUN pip install -r requirements.txt --no-cache-dir

RUN cd bert_vits2/monotonic_align && \
Expand All @@ -35,7 +36,7 @@ RUN cd bert_vits2/monotonic_align && \

RUN pip install gunicorn --no-cache-dir

COPY . /app


EXPOSE 23456

Expand Down
5 changes: 2 additions & 3 deletions Dockerfile_GPU
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ WORKDIR /app

ENV DEBIAN_FRONTEND=noninteractive

COPY . /app

RUN apt-get update && \
apt-get install -yq build-essential espeak-ng cmake wget && \
apt-get clean && \
Expand All @@ -25,7 +27,6 @@ RUN wget https://raw.githubusercontent.com/Artrajz/archived/main/openjtalk/openj

RUN pip install torch --index-url https://download.pytorch.org/whl/cu117 --no-cache-dir

COPY requirements.txt /app
RUN pip install -r requirements.txt --no-cache-dir

RUN cd bert_vits2/monotonic_align && \
Expand All @@ -35,8 +36,6 @@ RUN cd bert_vits2/monotonic_align && \

RUN pip install gunicorn --no-cache-dir

COPY . /app

EXPOSE 23456

CMD ["gunicorn", "-c", "gunicorn_config.py", "app:app"]

0 comments on commit 00b81cf

Please sign in to comment.