Compare commits
4 Commits
4febe71cb3
...
188451015f
Author | SHA1 | Date | |
---|---|---|---|
188451015f | |||
3f7a895593 | |||
7a5018bc5e | |||
1b325169cf |
@ -4,6 +4,7 @@ on:
|
||||
push:
|
||||
tags:
|
||||
- "*"
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
jobs:
|
||||
|
@ -11,11 +11,15 @@ COPY . .
|
||||
RUN go build -o gosearch .
|
||||
|
||||
# Use a minimal base image for final deployment
|
||||
FROM alpine:latest
|
||||
FROM alpine:3.21
|
||||
# Set working directory in the container
|
||||
WORKDIR /root/
|
||||
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
|
||||
USER gosearch
|
||||
# Expose the application port
|
||||
EXPOSE 3000
|
||||
# Run the application
|
||||
|
Loading…
x
Reference in New Issue
Block a user