mirror of
https://github.com/DS4SD/docling.git
synced 2025-08-01 23:12:20 +00:00
Actor: Enhance Docker security with proper user permissions
- Set proper ownership and permissions for runtime directory. - Switch to non-root user for enhanced security. - Use `--chown` flag in COPY commands to maintain correct file ownership. - Ensure all files and directories are owned by `appuser`. Signed-off-by: Václav Vančura <commit@vancura.dev>
This commit is contained in:
parent
ae491b0516
commit
19f612c009
@ -14,9 +14,13 @@ RUN npm install -g apify-cli && npm cache clean --force
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN mkdir -p /tmp/runtime-root && chmod 0700 /tmp/runtime-root
|
RUN mkdir -p /tmp/runtime-root && \
|
||||||
|
chmod 0700 /tmp/runtime-root && \
|
||||||
|
chown appuser:appuser /tmp/runtime-root
|
||||||
|
|
||||||
COPY .actor/ .actor/
|
COPY --chown=appuser:appuser .actor/ .actor/
|
||||||
COPY . .
|
COPY --chown=appuser:appuser . .
|
||||||
|
|
||||||
|
USER appuser
|
||||||
|
|
||||||
ENTRYPOINT [".actor/actor.sh"]
|
ENTRYPOINT [".actor/actor.sh"]
|
||||||
|
Loading…
Reference in New Issue
Block a user