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.

46 lines
856 B

  1. FROM ubuntu:18-04-slim
  2. ARG MOZJPEG_VERSION=3.3.1
  3. # Install tooling (ffmpeg, opusenc, optipng, python3)
  4. RUN apt-get update \
  5. && apt-get install -y \
  6. ffmpeg \
  7. python3 \
  8. python3-pip \
  9. opus-tools \
  10. optipng \
  11. curl
  12. WORKDIR /tmp
  13. # Install mozjpeg
  14. RUN curl -LS -o mozjpeg.deb https://mozjpeg.codelove.de/bin/mozjpeg_$MOZJPEG_VERSION_amd64.deb \
  15. && dpkg -i mozjpeg.deb \
  16. && rm -f mozjpeg.deb
  17. # Cleanup image programs and cache
  18. RUN apt-get remove curl \
  19. && rm -rf /var/lib/apt/lists/*
  20. WORKDIR /acm
  21. # Copy application
  22. COPY acm.py requirements.txt .
  23. # Install application requirements
  24. RUN python3 -m pip install -r requirements.txt
  25. WORKDIR /bin
  26. # Copy application helper script
  27. COPY docker/acm acm
  28. # Make script executable
  29. RUN chmod +x acm
  30. WORKDIR /project
  31. COPY docker/entrypoint.sh .
  32. ENTRYPOINT ["entrypoint.sh"]