mirror of
https://github.com/fosrl/olm.git
synced 2026-02-08 05:56:41 +00:00
Bumps the minor-updates group with 1 update: golang.
Updates `golang` from 1.24-alpine to 1.25-alpine
---
updated-dependencies:
- dependency-name: golang
dependency-version: 1.25-alpine
dependency-type: direct:production
dependency-group: minor-updates
...
Signed-off-by: dependabot[bot] <support@github.com>
Former-commit-id: e37282c120
33 lines
752 B
Docker
33 lines
752 B
Docker
FROM golang:1.25-alpine AS builder
|
|
|
|
# Set the working directory inside the container
|
|
WORKDIR /app
|
|
|
|
# Copy go mod and sum files
|
|
COPY go.mod go.sum ./
|
|
|
|
# Download all dependencies
|
|
RUN go mod download
|
|
|
|
# Copy the source code into the container
|
|
COPY . .
|
|
|
|
# Build the application
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -o /olm
|
|
|
|
# Start a new stage from scratch
|
|
FROM ubuntu:24.04 AS runner
|
|
|
|
RUN apt-get update && apt-get install ca-certificates -y && rm -rf /var/lib/apt/lists/*
|
|
|
|
# Copy the pre-built binary file from the previous stage and the entrypoint script
|
|
COPY --from=builder /olm /usr/local/bin/
|
|
COPY entrypoint.sh /
|
|
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
# Copy the entrypoint script
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
# Command to run the executable
|
|
CMD ["olm"] |