Hugo-to-Gemini Markdown converter
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

23 lines
432 B

FROM golang:1.15-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 alpine:3.12 AS runner
LABEL maintainer "Timur Demin <me@tdem.in>"
COPY --from=builder /tmp/gmnhg /tmp/md2gmn /bin/
CMD ["/bin/sh"]