Fix Docker image failure by creating home directory for non-root mcp user (#2251)

remove -H
This commit is contained in:
Anannya Patra authored and GitHub committed 2026-03-27 08:30:19 -07:00
1 parent 43c282f393
commit 63d9070fad
1 file changed
+1 -1
+1 -1
View File
@@ -35,7 +35,7 @@ COPY ${PUBLISH_DIR}/${EXECUTABLE_NAME} server-binary
RUN chmod +x server-binary && test -x server-binary
# Run as non-root user for security hardening
RUN adduser -D -H -s /sbin/nologin mcp && \
RUN adduser -D -s /sbin/nologin mcp && \
chown -R mcp:mcp /mcp-server
USER mcp