Compare commits
1 Commits
188451015f
...
4febe71cb3
Author | SHA1 | Date | |
---|---|---|---|
4febe71cb3 |
@ -4,7 +4,6 @@ on:
|
||||
push:
|
||||
tags:
|
||||
- "*"
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
jobs:
|
||||
|
@ -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