We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8339a26 + 95dcdaa commit 6835ae2Copy full SHA for 6835ae2
Dockerfile
@@ -51,6 +51,17 @@ COPY pyproject.toml ./
51
# Create healthcheck file
52
RUN touch /app/healthcheck
53
54
+# Create non-root user with UID 1000 for improved security
55
+# This ensures the application can write to /app/healthcheck at runtime
56
+RUN groupadd -f -g 1000 oracle && \
57
+ useradd -u 1000 -g oracle -s /bin/bash -m oracle
58
+
59
+# Change ownership of all /app files to the oracle user
60
+RUN chown -R oracle:oracle /app
61
62
+# Switch to non-root user for runtime security
63
+USER oracle
64
65
# Use Tini as entrypoint for proper signal handling
66
ENTRYPOINT ["/usr/bin/tini", "--"]
67
0 commit comments