Files
docconv/docd/Dockerfile
T
Jonathan Sokolowski 88cb39368e docd: refactor Dockerfile and publish to DockerHub (#101)
* Use multi-stage build to compile docd
* Bring debian variant up to date
* Deprecate the alpine variant
* Add GitHub action to publish an official image to DockerHub
* Use published image as the AppEngine custom runtime
2021-08-18 19:16:30 +10:00

29 lines
549 B
Docker

FROM golang:1.14 AS build
WORKDIR /go/src/github.com/sajari/docconv/docd
COPY main.go .
RUN go get -v ./
RUN go build .
################################################################################
FROM debian:11-slim AS docd
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
lynx \
poppler-utils \
tidy \
unrtf \
wv \
zip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
EXPOSE 8888
COPY --from=build /go/bin/docd /docd
ENTRYPOINT ["/docd"]
CMD ["--help"]