fix: Update Dockerfile to simplify user group setup

This commit is contained in:
Alex Wellnitz 2025-03-26 16:46:57 +01:00
parent a4c6607194
commit b0fe17cea2

View File

@ -17,8 +17,8 @@ WORKDIR /
# Copy the built binary from the builder stage # Copy the built binary from the builder stage
COPY --from=builder /app/gosearch . COPY --from=builder /app/gosearch .
# Add executing User # Add executing User
RUN addgroup gosearch RUN addgroup gosearch \
RUN useradd -g gosearch gosearch && useradd -g gosearch gosearch
USER gosearch USER gosearch
# Expose the application port # Expose the application port
EXPOSE 3000 EXPOSE 3000