File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -37,13 +37,17 @@ RUN apk add --no-cache tini=0.19.0-r3
37
37
# - Adds a dedicated non-root group and user for security (using the ARG).
38
38
# - Creates necessary directories for configs, logs, and user data.
39
39
# - Sets correct ownership for the non-root user.
40
+ # Note: ~/.cache/mcpd is created on-demand by the application when needed
41
+ # (e.g. ~/.cache/mcpd/registries during 'mcpd add' or 'mcpd search' commands)
42
+ # but not during normal daemon operation.
40
43
RUN addgroup -S $MCPD_USER && \
41
44
adduser -D -S -h $MCPD_HOME -G $MCPD_USER $MCPD_USER && \
42
45
mkdir -p \
43
46
$MCPD_HOME/.config/mcpd \
44
47
/var/log/mcpd \
45
48
/etc/mcpd && \
46
- chown -R $MCPD_USER:$MCPD_USER $MCPD_HOME /var/log/mcpd
49
+ chmod 700 $MCPD_HOME/.config/mcpd && \
50
+ chown -R $MCPD_USER:$MCPD_USER $MCPD_HOME /var/log/mcpd \
47
51
48
52
# Copy uv/uvx binaries from image.
49
53
COPY --from=ghcr.io/astral-sh/uv:0.8.4 /uv /uvx /usr/local/bin/
You can’t perform that action at this time.
0 commit comments