diff --git a/build/Dockerfile b/build/Dockerfile index ad433740..133d6f8e 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -9,7 +9,7 @@ ARG GOLANG_VERSION FROM golang:$GOLANG_VERSION AS binary-stage ARG GOTENBERG_VERSION -ENV CGO_ENABLED 0 +ENV CGO_ENABLED=0 # Define the working directory outside of $GOPATH (we're using go modules). WORKDIR /home @@ -191,12 +191,12 @@ COPY build/fonts.conf /etc/fonts/conf.d/100-gotenberg.conf COPY --from=binary-stage /home/gotenberg /usr/bin/ # Environment variables required by modules or else. -ENV CHROMIUM_BIN_PATH /usr/bin/chromium -ENV LIBREOFFICE_BIN_PATH /usr/lib/libreoffice/program/soffice.bin -ENV UNOCONVERTER_BIN_PATH /usr/bin/unoconverter -ENV PDFTK_BIN_PATH /usr/bin/pdftk -ENV QPDF_BIN_PATH /usr/bin/qpdf -ENV EXIFTOOL_BIN_PATH /usr/bin/exiftool +ENV CHROMIUM_BIN_PATH=/usr/bin/chromium +ENV LIBREOFFICE_BIN_PATH=/usr/lib/libreoffice/program/soffice.bin +ENV UNOCONVERTER_BIN_PATH=/usr/bin/unoconverter +ENV PDFTK_BIN_PATH=/usr/bin/pdftk +ENV QPDF_BIN_PATH=/usr/bin/qpdf +ENV EXIFTOOL_BIN_PATH=/usr/bin/exiftool USER gotenberg WORKDIR /home/gotenberg diff --git a/test/Dockerfile b/test/Dockerfile index 0f0d710f..723c3fa3 100644 --- a/test/Dockerfile +++ b/test/Dockerfile @@ -3,7 +3,7 @@ ARG DOCKER_REPOSITORY ARG GOTENBERG_VERSION ARG GOLANGCI_LINT_VERSION -FROM golang:$GOLANG_VERSION-bookworm 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. @@ -11,9 +11,9 @@ FROM $DOCKER_REPOSITORY/gotenberg:$GOTENBERG_VERSION USER root -ENV GOPATH /go -ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH -ENV CGO_ENABLED 1 +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