Compare commits
1 Commits
376acdd0b5
...
188451015f
Author | SHA1 | Date | |
---|---|---|---|
188451015f |
@ -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
|
||||||
|
@ -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)
|
|
||||||
[](https://sonar.dev-null.rocks/dashboard?id=gosearch)
|
|
||||||
|
|
||||||
# gosearch
|
# gosearch
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user