|
|
@ -9,8 +9,6 @@ ENV LC_ALL=C.UTF-8 |
|
|
|
ENV LANG=C.UTF-8 |
|
|
|
ENV DEBIAN_FRONTEND=noninteractive |
|
|
|
|
|
|
|
ARG MOZJPEG_VERSION="3.3.1" |
|
|
|
|
|
|
|
# Install tooling (ffmpeg, opusenc, optipng, python3) |
|
|
|
RUN ln -fs /usr/share/zoneinfo/UCT /etc/localtime \ |
|
|
|
&& apt-get update -y \ |
|
|
@ -27,11 +25,16 @@ RUN ln -fs /usr/share/zoneinfo/UCT /etc/localtime \ |
|
|
|
WORKDIR /tmp |
|
|
|
|
|
|
|
# Install mozjpeg |
|
|
|
ARG MOZJPEG_VERSION="3.3.1" |
|
|
|
RUN curl -LS -o mozjpeg.deb "https://nexus.nulloctet.com/repository/public/mozjpeg/mozjpeg_${MOZJPEG_VERSION}_amd64.deb" \ |
|
|
|
&& dpkg -i mozjpeg.deb \ |
|
|
|
&& ln -sf /opt/mozjpeg/bin/cjpeg /bin/cjpeg \ |
|
|
|
&& rm -f mozjpeg.deb |
|
|
|
|
|
|
|
# Install poetry |
|
|
|
ARG POETRY_VERSION="1.1.12" |
|
|
|
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/${POETRY_VERSION}/get-poetry.py | python - |
|
|
|
|
|
|
|
# Cleanup image programs and cache |
|
|
|
RUN apt-get remove -y curl \ |
|
|
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|