|
|
@ -1,6 +1,9 @@ |
|
|
|
FROM ubuntu:18-04-slim |
|
|
|
FROM ubuntu:18.04 |
|
|
|
|
|
|
|
ARG MOZJPEG_VERSION=3.3.1 |
|
|
|
ENV LC_ALL=C.UTF-8 |
|
|
|
ENV LANG=C.UTF-8 |
|
|
|
|
|
|
|
ARG MOZJPEG_VERSION="3.3.1" |
|
|
|
|
|
|
|
# Install tooling (ffmpeg, opusenc, optipng, python3) |
|
|
|
RUN apt-get update \ |
|
|
@ -15,18 +18,19 @@ RUN apt-get update \ |
|
|
|
WORKDIR /tmp |
|
|
|
|
|
|
|
# Install mozjpeg |
|
|
|
RUN curl -LS -o mozjpeg.deb https://mozjpeg.codelove.de/bin/mozjpeg_$MOZJPEG_VERSION_amd64.deb \ |
|
|
|
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 |
|
|
|
|
|
|
|
# Cleanup image programs and cache |
|
|
|
RUN apt-get remove curl \ |
|
|
|
RUN apt-get remove -y curl \ |
|
|
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
|
|
WORKDIR /acm |
|
|
|
WORKDIR /app |
|
|
|
|
|
|
|
# Copy application |
|
|
|
COPY acm.py requirements.txt . |
|
|
|
COPY acm.py requirements.txt /app/ |
|
|
|
|
|
|
|
# Install application requirements |
|
|
|
RUN python3 -m pip install -r requirements.txt |
|
|
@ -43,4 +47,4 @@ WORKDIR /project |
|
|
|
|
|
|
|
COPY docker/entrypoint.sh . |
|
|
|
|
|
|
|
ENTRYPOINT ["entrypoint.sh"] |
|
|
|
CMD ["sh", "/project/entrypoint.sh"] |