Files
Jonathan Ingram 48caff118f docd: bump to Go 1.21 and debian:12 (#145)
Also show Go version in startup logs.
2023-09-13 15:09:12 +10:00

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