Skip to content
Snippets Groups Projects
Commit 0f0c1891 authored by Jonas Leder's avatar Jonas Leder
Browse files

add container for easier copy of plugin to backend container

parent a95788e3
No related branches found
No related tags found
No related merge requests found
Pipeline #59259 failed
......@@ -11,3 +11,7 @@ build-application-binary:
paths:
- gotify.so
expire_in: 1 week
include:
- project: 'infra/ci'
file: '/pipelines/docker.yml'
FROM golang:1.24.1-alpine AS build
RUN apk add --no-cache --update gcc g++
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY ./ ./
RUN CGO_ENABLED=1 GOOS=linux go build -buildmode=plugin -ldflags "-w -s" -o /gotify.so .
FROM scratch
COPY --from=build /gotify.so /gotify.so
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment