Fix Alpine Linux addgroup/adduser syntax for non-root user creation
All checks were successful
Build and Release / build (push) Successful in 12s

This commit is contained in:
Ducky SSH User
2025-12-20 06:45:21 +00:00
parent a5a683d1de
commit 0a37b04506
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ RUN echo '#!/bin/sh' > /app/entrypoint.sh && \
chmod +x /app/entrypoint.sh chmod +x /app/entrypoint.sh
# Create non-root user # Create non-root user
RUN addgroup -D appgroup && adduser -D appuser -G appgroup RUN addgroup -g 1000 appgroup && adduser -D -u 1000 -G appgroup appuser
USER appuser USER appuser
# Run the agent # Run the agent

View File

@@ -42,7 +42,7 @@ RUN echo '#!/bin/sh' > /app/entrypoint.sh && \
chmod +x /app/entrypoint.sh chmod +x /app/entrypoint.sh
# Create non-root user # Create non-root user
RUN addgroup -D appgroup && adduser -D appuser -G appgroup RUN addgroup -g 1000 appgroup && adduser -D -u 1000 -G appgroup appuser
USER appuser USER appuser
# Expose port # Expose port