24 lines
863 B
Docker
24 lines
863 B
Docker
ARG M4B_TOOL_IMAGE=sandreas/m4b-tool:0.5.2
|
|
FROM ${M4B_TOOL_IMAGE}
|
|
|
|
# Alpine's ffmpeg package supplies ffprobe. /usr/local/bin/ffmpeg from the
|
|
# upstream image remains first on PATH for its specialized codec build.
|
|
RUN apk add --no-cache ffmpeg python3 py3-pip \
|
|
&& ffprobe -version
|
|
|
|
WORKDIR /app
|
|
COPY pyproject.toml /app/
|
|
COPY app /app/app
|
|
RUN python3 -m pip install --no-cache-dir --break-system-packages .
|
|
|
|
COPY config.toml /app/config.toml
|
|
COPY scripts/entrypoint.sh /usr/local/bin/audiobook-entrypoint
|
|
COPY scripts/container-smoke.sh /app/scripts/container-smoke.sh
|
|
RUN mkdir -p /app/state \
|
|
&& chmod 0777 /app/state \
|
|
&& chmod 0555 /usr/local/bin/audiobook-entrypoint /app/scripts/container-smoke.sh
|
|
|
|
# The upstream image starts m4b-tool directly. This image starts the application.
|
|
ENTRYPOINT ["/usr/local/bin/audiobook-entrypoint"]
|
|
CMD ["run"]
|