Docker image
dlidstrom opened this issue · comments
Daniel Lidström commented
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.