tidy-html5/Dockerfile
Emelie Graven 3d90fec2a2
Some checks failed
continuous-integration/drone/push Build is failing
Add Dockerfile and drone config
Adds a Dockerfile that builds the project, and a drone pipeline to push
the docker image to the docker hub.
2021-11-24 10:39:08 +01:00

16 lines
364 B
Docker

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" ]