Skip to content

Commit

Permalink
Ensure all folders are accessible by appuser in the Docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
agpituk committed Dec 13, 2024
1 parent cf6ca2e commit 24d0d23
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ RUN pip3 install /home/appuser/document-to-podcast
RUN python3 demo/download_models.py

RUN groupadd --gid 1000 appuser \
&& useradd --uid 1000 --gid 1000 -ms /bin/bash appuser
&& useradd --uid 1000 --gid 1000 --create-home appuser \
&& chown -R appuser:appuser /home/appuser \
&& chmod -R 777 /home/appuser/.cache

USER appuser

Expand Down

0 comments on commit 24d0d23

Please sign in to comment.