-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile.plugin-builder
More file actions
33 lines (26 loc) · 1.08 KB
/
Copy pathDockerfile.plugin-builder
File metadata and controls
33 lines (26 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Dockerfile.plugin-builder publishes the official source-package builder image.
# syntax=docker/dockerfile:1
ARG GO_VERSION=1.25.0
FROM golang:${GO_VERSION}-bookworm
ARG GO_VERSION=1.25.0
ARG GATEWAY_RELEASE
ARG PLUGIN_API_VERSION
ARG TARGETOS
ARG TARGETARCH
LABEL org.opencontainers.image.title="mc-gateway plugin source builder"
LABEL org.opencontainers.image.description="Official mc-gateway source .mcgp builder image"
LABEL org.opencontainers.image.version="${GATEWAY_RELEASE}"
LABEL org.opencontainers.image.vendor="tursom"
LABEL org.opencontainers.image.source="https://github.com/tursom/mc-gateway"
LABEL io.mc-gateway.builder.gateway-release="${GATEWAY_RELEASE}"
LABEL io.mc-gateway.builder.plugin-api-version="${PLUGIN_API_VERSION}"
LABEL io.mc-gateway.builder.go-version="${GO_VERSION}"
LABEL io.mc-gateway.builder.goos="${TARGETOS}"
LABEL io.mc-gateway.builder.goarch="${TARGETARCH}"
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates git \
&& rm -rf /var/lib/apt/lists/*
ENV GOTOOLCHAIN=local
ENV CGO_ENABLED=1
ENV GOFLAGS=-trimpath
WORKDIR /src