From ff3079a9224fca20cc943af37e376f42d8d141b2 Mon Sep 17 00:00:00 2001 From: Emelie Graven Date: Wed, 24 Nov 2021 13:32:16 +0100 Subject: [PATCH] Add 5.6.0 --- .drone.yml | 13 +++++++++++++ Dockerfile | 15 +++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .drone.yml create mode 100644 Dockerfile diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..4f4fae9 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,13 @@ +kind: pipeline +name: default + +steps: +- name: docker + image: plugins/docker + settings: + repo: egraven/tidy-html5 + username: egraven + password: + from_secret: DOCKER_TOKEN + tags: + - '5.6.0' diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d2ad19b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +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 +RUN cmake /build -DCMAKE_BUILD_TYPE=Release +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" ]