Compare commits

..

No commits in common. "3f7a89559321080956b20617186670462e595e63" and "1b325169cfe97a61bb4d0ff9cce2af5273e605dc" have entirely different histories.

View File

@ -11,15 +11,11 @@ COPY . .
RUN go build -o gosearch . RUN go build -o gosearch .
# Use a minimal base image for final deployment # Use a minimal base image for final deployment
FROM alpine:3.21 FROM alpine:latest
# Set working directory in the container # Set working directory in the container
WORKDIR / WORKDIR /root/
# 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
RUN addgroup gosearch
RUN useradd -g gosearch gosearch
USER gosearch
# Expose the application port # Expose the application port
EXPOSE 3000 EXPOSE 3000
# Run the application # Run the application