2021-11-24 09:39:08 +00:00
|
|
|
FROM debian:stable-slim AS builder
|
|
|
|
RUN apt-get update -y && \
|
|
|
|
apt-get install -y git cmake make build-essential gcc
|
|
|
|
|
|
|
|
WORKDIR /build
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
RUN cd build/cmake
|
2021-11-24 09:42:24 +00:00
|
|
|
RUN cmake /build -DCMAKE_BUILD_TYPE=Release
|
2021-11-24 09:39:08 +00:00
|
|
|
RUN make
|
|
|
|
RUN make install
|
|
|
|
|
|
|
|
FROM debian:stable-slim AS runtime
|
|
|
|
COPY --from=builder /usr/local/bin/tidy /usr/local/bin/tidy
|
|
|
|
ENTRYPOINT [ "/usr/local/bin/tidy" ]
|