dlidstrom / Duplo

Duplicates finder for various source code formats.
GNU General Public License v2.0
97 stars 21 forks source link

Docker image #20

Closed dlidstrom closed 4 years ago

dlidstrom commented 4 years ago

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.