Compare commits
3 Commits
3f7a895593
...
1bba61d476
Author | SHA1 | Date | |
---|---|---|---|
1bba61d476 | |||
b0fe17cea2 | |||
a4c6607194 |
@ -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
|
||||
|
@ -1,4 +1,6 @@
|
||||
[](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