mirror of
https://github.com/sajari/docconv.git
synced 2026-10-17 05:30:56 +08:00
48caff118f
Also show Go version in startup logs.
30 lines
533 B
Docker
30 lines
533 B
Docker
FROM golang:1.21 AS build
|
|
|
|
WORKDIR /app
|
|
COPY . ./
|
|
RUN go build -o /bin/docd ./docd
|
|
|
|
################################################################################
|
|
|
|
FROM debian:12-slim AS docd
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
ca-certificates \
|
|
lynx \
|
|
poppler-utils \
|
|
tidy \
|
|
unrtf \
|
|
wv \
|
|
zip \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN update-ca-certificates
|
|
|
|
EXPOSE 8888
|
|
|
|
COPY --from=build /bin/docd /docd
|
|
ENTRYPOINT ["/docd"]
|
|
CMD ["--help"]
|