Skip to content
Snippets Groups Projects
plugin-registry.debug.Dockerfile 583 B
Newer Older
  • Learn to ignore specific revisions
  • ARG GOLANG_VERSION=1.21
    
    FROM ${GITLAB_PROXY}golang:$GOLANG_VERSION-bullseye as builder
    
    WORKDIR /plugin-registry/
    RUN apt-get update
    RUN apt-get -y install --no-install-recommends zip
    COPY . .
    
    RUN --mount=type=cache,target=/root/go/pkg/mod \
        --mount=type=cache,target=/root/.cache/go-build \
        make build-plugin-registry-debug
    
    FROM scratch
    WORKDIR /app/
    COPY --from=builder /plugin-registry/artifacts/plugin-registry .
    COPY --from=builder /plugin-registry/plugin-registry/plugins ./plugins
    ENTRYPOINT ["./plugin-registry", "-socket", "55057"]