From f9631a8f310a1a8525aaf84b5aa5a13fc103e732 Mon Sep 17 00:00:00 2001 From: TheOnlyWayUp Date: Fri, 6 Dec 2024 15:28:32 +0000 Subject: [PATCH] feat(api): Add exiftool to dockerfile Untested, I probably have to install Perl as well --- Dockerfile | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f7e6f29..be0c0a3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,14 +23,28 @@ RUN apt install -y build-essential xorg libssl-dev libxrender-dev wget RUN wget "https://github.com/wkhtmltopdf/packaging/releases/download/${WKHTML2PDF_VERSION}/wkhtmltox_${WKHTML2PDF_VERSION}.bionic_amd64.deb" RUN sudo apt install -y ./wkhtmltox_${WKHTML2PDF_VERSION}.bionic_amd64.deb RUN rm wkhtmltox_${WKHTML2PDF_VERSION}.bionic_amd64.deb -RUN rm -rf /var/lib/apt/lists/* + +ENV EXIFTOOL_VERSION="13.06" +RUN wget "https://exiftool.org/Image-ExifTool-${EXIFTOOL_VERSION}.tar.gz" +RUN gzip "Image-ExifTool-${EXIFTOOL_VERSION}.tar.gz" | tar -xf - +WORKDIR /app/Image-ExifTool-${EXIFTOOL_VERSION} +RUN perl Makefile.PL +RUN make test +RUN sudo make install + +RUN rm -rf /var/lib/apt/lists/* /app/Image-ExifTool-${EXIFTOOL_VERSION} + +WORKDIR /app # --- # COPY src/api/requirements.txt requirements.txt +COPY src/api/exiftool.config exiftool.config RUN pip3 install -r requirements.txt -COPY --from=0 /build/build /app/build -COPY src/api/src . +COPY --from=0 /build/build /app/src/build +COPY src/api/src src + +WORKDIR /app/src EXPOSE 80 # ENV PORT=80