Tooling for managing asset compression, storage, and retrieval
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

50 lines
1005 B

FROM ubuntu:18.04
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 \
&& apt-get install -y \
ffmpeg \
python3 \
python3-pip \
opus-tools \
optipng \
curl
WORKDIR /tmp
# Install mozjpeg
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 -y curl \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy application
COPY acm-config-default.json acm.py requirements.txt /app/
# Install application requirements
RUN python3 -m pip install -r requirements.txt
WORKDIR /bin
# Copy application helper script
COPY docker/acm acm
# Make script executable
RUN chmod +x acm
WORKDIR /project
COPY docker/entrypoint.sh .
CMD ["sh", "/project/entrypoint.sh"]