Add Dockerfile and drone config
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
Adds a Dockerfile that builds the project, and a drone pipeline to push the docker image to the docker hub.
This commit is contained in:
parent
14223a95a8
commit
3d90fec2a2
12
.drone.yml
Normal file
12
.drone.yml
Normal file
|
@ -0,0 +1,12 @@
|
|||
kind: pipeline
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: egraven/tidy-html5
|
||||
auto_tag: true
|
||||
username: egraven
|
||||
password:
|
||||
from_secret: DOCKER_TOKEN
|
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 /app -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" ]
|
|
@ -1,3 +1,7 @@
|
|||
[![Build Status](https://drone.data.coop/api/badges/emelie/tidy-html5/status.svg?ref=refs/heads/next)](https://drone.data.coop/emelie/tidy-html5)
|
||||
|
||||
## Forked from [https://github.com/htacg/tidy-html5](https://github.com/htacg/tidy-html5)
|
||||
|
||||
# HTACG HTML Tidy
|
||||
|
||||
All other READMEs and related materials can be found in [README/][100]. Although all of our materials should be linked in this README, be sure to check this directory for documents we’ve not yet added to this document.
|
||||
|
|
Loading…
Reference in a new issue