mirror of
https://github.com/TauricResearch/TradingAgents.git
synced 2026-06-16 21:06:15 +03:00
fix(docker): pre-create .tradingagents dir with appuser ownership
useradd --create-home creates /home/appuser but not the .tradingagents subdir, so cache writes fail with PermissionError when docker-compose mounts a named volume there (the volume inherits image-dir ownership on first init). #627 #672 #771 #690 #714 #723 #780 #633 #773 #631
This commit is contained in:
@@ -18,7 +18,8 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
|
|||||||
COPY --from=builder /opt/venv /opt/venv
|
COPY --from=builder /opt/venv /opt/venv
|
||||||
ENV PATH="/opt/venv/bin:$PATH"
|
ENV PATH="/opt/venv/bin:$PATH"
|
||||||
|
|
||||||
RUN useradd --create-home appuser
|
RUN useradd --create-home appuser \
|
||||||
|
&& install -d -m 0755 -o appuser -g appuser /home/appuser/.tradingagents
|
||||||
USER appuser
|
USER appuser
|
||||||
WORKDIR /home/appuser/app
|
WORKDIR /home/appuser/app
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user