Skip to content

Commit

Permalink
Reverse order of download models and user creation in the Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
agpituk committed Dec 13, 2024
1 parent 648e2dc commit b88f888
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ WORKDIR /home/appuser/document-to-podcast
RUN pip3 install torch torchaudio --index-url https://download.pytorch.org/whl/cpu
RUN pip3 install git+https://github.com/huggingface/parler-tts.git
RUN pip3 install /home/appuser/document-to-podcast
RUN groupadd --gid 1000 appuser \
&& useradd --uid 1000 --gid 1000 -ms /bin/bash appuser
USER appuser

RUN python3 demo/download_models.py

RUN groupadd --gid 1000 appuser \
&& useradd --uid 1000 --gid 1000 --create-home appuser \
&& chown -R appuser:appuser /home/appuser

USER appuser



EXPOSE 8501
ENTRYPOINT ["./demo/run.sh"]

0 comments on commit b88f888

Please sign in to comment.