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