Compare commits

...

3 Commits

Author SHA1 Message Date
1bba61d476 chore: Update Dockerfile to use Golang 1.24 image
Some checks failed
Go / build (push) Successful in -9s
renovate / renovate (push) Successful in 40s
SonarQube Scan / Build and analyze (push) Failing after 12s
2025-03-26 16:47:31 +01:00
b0fe17cea2 fix: Update Dockerfile to simplify user group setup 2025-03-26 16:46:57 +01:00
a4c6607194 docs: add security badges to README.md 2025-03-26 16:46:14 +01:00
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,5 @@
# Use the official Golang image for building
FROM golang:1.23 AS builder
FROM golang:1.24 AS builder
# Set working directory
WORKDIR /app
# Copy Go modules and dependencies
@ -17,8 +17,8 @@ WORKDIR /
# Copy the built binary from the builder stage
COPY --from=builder /app/gosearch .
# Add executing User
RUN addgroup gosearch
RUN useradd -g gosearch gosearch
RUN addgroup gosearch \
&& useradd -g gosearch gosearch
USER gosearch
# Expose the application port
EXPOSE 3000

View File

@ -1,4 +1,6 @@
[![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