dlidstrom / Duplo

Duplicates finder for various source code formats.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker image

dlidstrom opened this issue · comments

Like this?

FROM alpine:3.11 AS build

RUN apk --no-cache add \
    alpine-sdk cmake

RUN mkdir -p /usr/src/ && \
    git clone https://github.com/dlidstrom/Duplo /usr/src/Duplo

WORKDIR /usr/src/Duplo

RUN mkdir build && cd build && cmake .. && cd .. && make

FROM scratch

WORKDIR /app
COPY --from=build /usr/src/Duplo/build/duplo .

ENTRYPOINT ["./duplo"]

See this.