mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-16 04:12:16 +01:00
fix: LibreOffice newer versions stability (#697)
This commit is contained in:
@@ -3,7 +3,7 @@ ARG DOCKER_REPOSITORY
|
||||
ARG GOTENBERG_VERSION
|
||||
ARG GOLANGCI_LINT_VERSION
|
||||
|
||||
FROM golang:$GOLANG_VERSION-bullseye as golang
|
||||
FROM golang:$GOLANG_VERSION-bookworm as golang
|
||||
|
||||
# We're extending the Gotenberg's Docker image because our code relies on external
|
||||
# dependencies like Google Chrome, LibreOffice, etc.
|
||||
@@ -15,6 +15,8 @@ ENV GOPATH /go
|
||||
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
|
||||
ENV CGO_ENABLED 1
|
||||
|
||||
COPY --from=golang /usr/local/go /usr/local/go
|
||||
|
||||
RUN apt-get update -qq &&\
|
||||
apt-get install -y -qq --no-install-recommends \
|
||||
sudo \
|
||||
@@ -31,9 +33,10 @@ RUN apt-get update -qq &&\
|
||||
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers &&\
|
||||
# We cannot use $PATH in the next command (print $PATH instead of the environment variable value).
|
||||
sed -i 's#/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin#/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/go/bin:/usr/local/go/bin#g' /etc/sudoers &&\
|
||||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin $GOLANGCI_LINT_VERSION
|
||||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin $GOLANGCI_LINT_VERSION &&\
|
||||
go install mvdan.cc/gofumpt@latest &&\
|
||||
go install github.com/daixiang0/gci@latest
|
||||
|
||||
COPY --from=golang /usr/local/go /usr/local/go
|
||||
COPY ./test/docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
|
||||
COPY ./test/golint.sh /usr/bin/golint
|
||||
COPY ./test/gotest.sh /usr/bin/gotest
|
||||
|
||||
Reference in New Issue
Block a user