mirror of
https://github.com/sajari/docconv.git
synced 2026-10-28 22:08:41 +08:00
28 lines
548 B
Docker
28 lines
548 B
Docker
FROM golang:1.19 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"]
|