mirror of
https://github.com/jbowdre/capsule.git
synced 2024-11-29 23:52:18 +00:00
23 lines
635 B
Docker
23 lines
635 B
Docker
|
FROM golang:1.22 AS go-builder
|
||
|
|
||
|
WORKDIR /app
|
||
|
|
||
|
RUN git clone https://github.com/jbowdre/md2gmi.git
|
||
|
|
||
|
WORKDIR /app/md2gmi
|
||
|
|
||
|
RUN go mod download && CGO_ENABLED=0 GOOS=linux go build -o /md2gmi
|
||
|
|
||
|
FROM ubuntu:22.04 AS release
|
||
|
|
||
|
RUN DEBIAN_FRONTEND=noninteractive apt-get update \
|
||
|
&& DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y uuid-runtime=2.37.2-4ubuntu3.4 \
|
||
|
&& rm -rf /var/lib/apt/lists/*
|
||
|
|
||
|
COPY --from=go-builder /md2gmi /usr/local/bin/md2gmi
|
||
|
COPY convert-dir.sh /usr/local/bin/convert-dir.sh
|
||
|
RUN chmod +x /usr/local/bin/convert-dir.sh
|
||
|
|
||
|
WORKDIR /github/workspace
|
||
|
|
||
|
ENTRYPOINT ["/usr/local/bin/convert-dir.sh"]
|