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.
 
 

24 lines
432 B

  1. FROM golang:1.15-alpine AS builder
  2. WORKDIR /src
  3. ENV CGO_ENABLED=0
  4. ENV GO111MODULE=on
  5. ENV GOFLAGS="-trimpath -ldflags=-linkmode=external"
  6. RUN apk add --no-cache git gcc musl-dev
  7. COPY . /src/
  8. RUN \
  9. go build -v -o /tmp/gmnhg ./cmd/gmnhg && \
  10. go build -v -o /tmp/md2gmn ./cmd/md2gmn
  11. FROM alpine:3.12 AS runner
  12. LABEL maintainer "Timur Demin <me@tdem.in>"
  13. COPY --from=builder /tmp/gmnhg /tmp/md2gmn /bin/
  14. CMD ["/bin/sh"]