Compare commits
1 Commits
376acdd0b5
...
188451015f
Author | SHA1 | Date | |
---|---|---|---|
188451015f |
@ -1,5 +1,5 @@
|
||||
# Use the official Golang image for building
|
||||
FROM golang:1.24 AS builder
|
||||
FROM golang:1.23 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 \
|
||||
&& useradd -g gosearch gosearch
|
||||
RUN addgroup gosearch
|
||||
RUN useradd -g gosearch gosearch
|
||||
USER gosearch
|
||||
# Expose the application port
|
||||
EXPOSE 3000
|
||||
|
@ -1,6 +1,4 @@
|
||||
[](https://sonar.dev-null.rocks/dashboard?id=gosearch)
|
||||
[](https://sonar.dev-null.rocks/dashboard?id=gosearch)
|
||||
[](https://sonar.dev-null.rocks/dashboard?id=gosearch)
|
||||
|
||||
# gosearch
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user