Skip to content

Commit 048df4e

Browse files
committed
feat: Claudio image OpenShift compliant
Due to the security context to run claudio in an OpenShift cluster we need to adjust the USER and the rights on the folders to make it OpenShift compliant Signed-off-by: Adrian Riobo <ariobolo@redhat.com>
1 parent 3f4d7f6 commit 048df4e

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

Containerfile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717

1818
FROM registry.access.redhat.com/ubi10/nodejs-22@sha256:f79613e29c1cc7ca8b5e98804f17088608a55ebc464fe5008eb923e5f64421a6
1919

20-
ARG TARGETARCH
2120

21+
ARG TARGETARCH
2222
USER root
23-
ENV HOME /root
2423

25-
RUN dnf install -y skopeo podman jq
24+
# Basic tools
25+
RUN dnf install -y skopeo podman jq
2626

2727
# Claude
2828
# https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md
@@ -67,6 +67,13 @@ RUN mkdir -p ${HOME}/claude/mcp/slack && \
6767
# https://github.com/containers/kubernetes-mcp-server/releases
6868
ENV K8S_MCP_V v0.0.52
6969

70+
# Setup non root user
71+
ENV HOME /home/default
72+
WORKDIR /home/default
73+
RUN chown -R default:0 ${HOME} && \
74+
chmod -R g=u ${HOME}
75+
USER default
76+
7077
# Conf
7178
COPY conf/ ${HOME}/
7279

0 commit comments

Comments
 (0)