Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,17 @@ COPY pyproject.toml ./
# Create healthcheck file
RUN touch /app/healthcheck

# Create non-root user with UID 1000 for improved security
# This ensures the application can write to /app/healthcheck at runtime
RUN groupadd -f -g 1000 oracle && \
useradd -u 1000 -g oracle -s /bin/bash -m oracle

# Change ownership of all /app files to the oracle user
RUN chown -R oracle:oracle /app

# Switch to non-root user for runtime security
USER oracle

# Use Tini as entrypoint for proper signal handling
ENTRYPOINT ["/usr/bin/tini", "--"]

Expand Down
Loading