diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..de2ff8b --- /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.4.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" ]