Compare commits
No commits in common. "3f7a89559321080956b20617186670462e595e63" and "1b325169cfe97a61bb4d0ff9cce2af5273e605dc" have entirely different histories.
3f7a895593
...
1b325169cf
@ -11,15 +11,11 @@ COPY . .
|
||||
RUN go build -o gosearch .
|
||||
|
||||
# Use a minimal base image for final deployment
|
||||
FROM alpine:3.21
|
||||
FROM alpine:latest
|
||||
# Set working directory in the container
|
||||
WORKDIR /
|
||||
WORKDIR /root/
|
||||
# Copy the built binary from the builder stage
|
||||
COPY --from=builder /app/gosearch .
|
||||
# Add executing User
|
||||
RUN addgroup gosearch
|
||||
RUN useradd -g gosearch gosearch
|
||||
USER gosearch
|
||||
# Expose the application port
|
||||
EXPOSE 3000
|
||||
# Run the application
|
||||
|
Loading…
x
Reference in New Issue
Block a user