Compare commits

...

4 Commits

Author SHA1 Message Date
c1ce1a1565 chore(deps): update golang docker tag to v1.24
Some checks failed
Go / build (pull_request) Successful in -11s
SonarQube Scan / Build and analyze (pull_request) Failing after 12s
2025-03-26 15:42:53 +00:00
3f7a895593 fix: Update Dockerfile to use Alpine 3.21 as base image
Some checks failed
Go / build (push) Successful in -11s
renovate / renovate (push) Successful in 1m0s
SonarQube Scan / Build and analyze (push) Failing after 12s
2025-03-26 16:37:24 +01:00
7a5018bc5e fix: update Dockerfile to use correct working directory and execute as user 2025-03-26 16:36:29 +01:00
1b325169cf ci: add workflow dispatch to release pipeline
Some checks failed
Go / build (push) Has been cancelled
renovate / renovate (push) Has been cancelled
SonarQube Scan / Build and analyze (push) Has been cancelled
2025-03-26 16:25:11 +01:00
2 changed files with 8 additions and 3 deletions

View File

@ -4,6 +4,7 @@ on:
push:
tags:
- "*"
workflow_dispatch:
jobs:

View File

@ -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
@ -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