mirror of
https://github.com/sajari/docconv.git
synced 2026-10-28 13:57:29 +08:00
* 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
29 lines
549 B
Docker
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"]
|
|
|