a1521884ef
This makes the Dockerfile use FQDNs for registry names as recommended by Podman and other OCI-compatible container solutions.
23 lines
468 B
Docker
23 lines
468 B
Docker
FROM docker.io/library/golang:1.18-alpine AS builder
|
|
|
|
WORKDIR /src
|
|
|
|
ENV CGO_ENABLED=0
|
|
ENV GO111MODULE=on
|
|
ENV GOFLAGS="-trimpath -ldflags=-linkmode=external"
|
|
|
|
RUN apk add --no-cache git gcc musl-dev
|
|
|
|
COPY . /src/
|
|
|
|
RUN \
|
|
go build -v -o /tmp/gmnhg ./cmd/gmnhg && \
|
|
go build -v -o /tmp/md2gmn ./cmd/md2gmn
|
|
|
|
FROM docker.io/library/alpine:3.15 AS runner
|
|
|
|
LABEL maintainer "Timur Demin <me@tdem.in>"
|
|
|
|
COPY --from=builder /tmp/gmnhg /tmp/md2gmn /bin/
|
|
|
|
CMD ["/bin/sh"]
|