Compare commits

..

No commits in common. "1bba61d47648a8cdcd3d767dcbdffcc0ed772af6" and "3f7a89559321080956b20617186670462e595e63" have entirely different histories.

2 changed files with 3 additions and 5 deletions

View File

@ -1,5 +1,5 @@
# Use the official Golang image for building # Use the official Golang image for building
FROM golang:1.24 AS builder FROM golang:1.23 AS builder
# Set working directory # Set working directory
WORKDIR /app WORKDIR /app
# Copy Go modules and dependencies # Copy Go modules and dependencies
@ -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
&& useradd -g gosearch gosearch RUN useradd -g gosearch gosearch
USER gosearch USER gosearch
# Expose the application port # Expose the application port
EXPOSE 3000 EXPOSE 3000

View File

@ -1,6 +1,4 @@
[![Quality Gate Status](https://sonar.dev-null.rocks/api/project_badges/measure?project=gosearch&metric=alert_status&token=sqb_4d86c3b73f6837027a319df42d2f70ccb46e56a2)](https://sonar.dev-null.rocks/dashboard?id=gosearch) [![Quality Gate Status](https://sonar.dev-null.rocks/api/project_badges/measure?project=gosearch&metric=alert_status&token=sqb_4d86c3b73f6837027a319df42d2f70ccb46e56a2)](https://sonar.dev-null.rocks/dashboard?id=gosearch)
[![Security Rating](https://sonar.dev-null.rocks/api/project_badges/measure?project=gosearch&metric=software_quality_security_rating&token=sqb_4d86c3b73f6837027a319df42d2f70ccb46e56a2)](https://sonar.dev-null.rocks/dashboard?id=gosearch)
[![Lines of Code](https://sonar.dev-null.rocks/api/project_badges/measure?project=gosearch&metric=ncloc&token=sqb_4d86c3b73f6837027a319df42d2f70ccb46e56a2)](https://sonar.dev-null.rocks/dashboard?id=gosearch)
# gosearch # gosearch