fix: create home directory for OpenBB in Docker container
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Yaojia Wang
2026-03-10 00:10:54 +01:00
parent e807af6395
commit 8c682dc5dd

View File

@@ -15,8 +15,12 @@ RUN pip install --no-cache-dir . && \
COPY *.py ./ COPY *.py ./
RUN useradd -m -s /bin/bash appuser && \
mkdir -p /home/appuser/.openbb_platform && \
chown -R appuser:appuser /home/appuser
EXPOSE 8000 EXPOSE 8000
USER nobody USER appuser
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]