mirror of
https://github.com/microsoft/mcp.git
synced 2026-11-04 12:01:31 +00:00
Fix Docker image failure by creating home directory for non-root mcp user (#2251)
remove -H
This commit is contained in:
1 parent
43c282f393
commit
63d9070fad
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user