This commit is contained in:
parent
3d1abac530
commit
e17cfb257b
13
.drone.yml
Normal file
13
.drone.yml
Normal file
|
@ -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.0.0'
|
15
Dockerfile
Normal file
15
Dockerfile
Normal file
|
@ -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" ]
|
Loading…
Reference in a new issue