|
@ -2,25 +2,25 @@ FROM ubuntu:20.04 |
|
|
|
|
|
|
|
|
LABEL maintainer="Drew Short <warrick@sothr.com>" \ |
|
|
LABEL maintainer="Drew Short <warrick@sothr.com>" \ |
|
|
name="acm" \ |
|
|
name="acm" \ |
|
|
version="1.4.0" \ |
|
|
|
|
|
|
|
|
version="1.5.0" \ |
|
|
description="Prepackaged ACM with defaults and tooling" |
|
|
description="Prepackaged ACM with defaults and tooling" |
|
|
|
|
|
|
|
|
ENV LC_ALL=C.UTF-8 |
|
|
ENV LC_ALL=C.UTF-8 |
|
|
ENV LANG=C.UTF-8 |
|
|
ENV LANG=C.UTF-8 |
|
|
ENV DEBIAN_FRONTEND=noninteractive |
|
|
ENV DEBIAN_FRONTEND=noninteractive |
|
|
|
|
|
|
|
|
# Install tooling (ffmpeg, opusenc, optipng, python3) |
|
|
|
|
|
|
|
|
# https://packages.ubuntu.com/search?suite=focal§ion=all&arch=any&keywords=curl&searchon=names |
|
|
RUN ln -fs /usr/share/zoneinfo/UCT /etc/localtime \ |
|
|
RUN ln -fs /usr/share/zoneinfo/UCT /etc/localtime \ |
|
|
&& apt-get update -y \ |
|
|
&& apt-get update -y \ |
|
|
&& apt-get install -y --fix-missing \ |
|
|
&& apt-get install -y --fix-missing \ |
|
|
curl \ |
|
|
|
|
|
ffmpeg \ |
|
|
|
|
|
opus-tools \ |
|
|
|
|
|
optipng \ |
|
|
|
|
|
python3 \ |
|
|
|
|
|
python3-pip \ |
|
|
|
|
|
tzdata \ |
|
|
|
|
|
webp |
|
|
|
|
|
|
|
|
curl=7.68.0-1ubuntu2.7 \ |
|
|
|
|
|
ffmpeg=7:4.2.4-1ubuntu0.1 \ |
|
|
|
|
|
opus-tools=0.1.10-1 \ |
|
|
|
|
|
optipng=0.7.7-1 \ |
|
|
|
|
|
python3=3.8.2-0ubuntu2 \ |
|
|
|
|
|
python3-pip=20.0.2-5ubuntu1.5 \ |
|
|
|
|
|
tzdata=2021e-0ubuntu0.20.04 \ |
|
|
|
|
|
webp=0.6.1-2ubuntu0.20.04.1 |
|
|
|
|
|
|
|
|
WORKDIR /tmp |
|
|
WORKDIR /tmp |
|
|
|
|
|
|
|
@ -42,7 +42,7 @@ RUN apt-get remove -y curl \ |
|
|
WORKDIR /app |
|
|
WORKDIR /app |
|
|
|
|
|
|
|
|
# Copy application |
|
|
# Copy application |
|
|
COPY acm-config-default.json acm.py requirements.txt /app/ |
|
|
|
|
|
|
|
|
COPY . /app/ |
|
|
|
|
|
|
|
|
# Install application requirements |
|
|
# Install application requirements |
|
|
RUN python3 -m pip install -r requirements.txt |
|
|
RUN python3 -m pip install -r requirements.txt |
|
@ -50,16 +50,16 @@ RUN python3 -m pip install -r requirements.txt |
|
|
WORKDIR /bin |
|
|
WORKDIR /bin |
|
|
|
|
|
|
|
|
# Copy application helper script |
|
|
# Copy application helper script |
|
|
COPY docker/acm acm |
|
|
|
|
|
|
|
|
RUN mv /app/docker/acm acm |
|
|
|
|
|
|
|
|
# Make script executable |
|
|
# Make script executable |
|
|
RUN chmod +x acm |
|
|
RUN chmod +x acm |
|
|
|
|
|
|
|
|
VOLUME ["/input", "/output"] |
|
|
VOLUME ["/input", "/output"] |
|
|
|
|
|
|
|
|
WORKDIR /app |
|
|
WORKDIR /app |
|
|
|
|
|
|
|
|
COPY acm-config.json.example acm-config.json |
|
|
|
|
|
COPY docker/entrypoint.sh . |
|
|
|
|
|
|
|
|
RUN mv docker/* . \ |
|
|
|
|
|
&& rm -rf docker \ |
|
|
|
|
|
&& mv acm-config.json.example acm-config.json |
|
|
|
|
|
|
|
|
CMD ["sh", "-c", "find /input/ -type f | /app/entrypoint.sh --stdin --remove-prefix /input/ compress -p default -d /output/"] |
|
|
CMD ["sh", "-c", "find /input/ -type f | /app/entrypoint.sh --stdin --remove-prefix /input/ compress -p default -d /output/"] |