-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
845953e
commit 4b49934
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM ubuntu:24.04 | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
|
||
RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \ | ||
--mount=target=/var/cache/apt,type=cache,sharing=locked \ | ||
rm -f /etc/apt/apt.conf.d/docker-clean && \ | ||
apt update && \ | ||
apt install -y espeak-ng ffmpeg python3 python3-pip python3-venv | ||
|
||
COPY epub2tts_edge/epub2tts_edge.py requirements.txt setup.py /app/ | ||
|
||
WORKDIR /app | ||
|
||
RUN --mount=type=cache,target=/root/.cache/pip \ | ||
python3 -m venv .venv && \ | ||
source .venv/bin/activate && \ | ||
pip install . | ||
|
||
ENV PATH="/app/.venv/bin:$PATH" | ||
|
||
ENTRYPOINT [ "python","epub2tts_edge.py" ] | ||
|
||
CMD ["--help"] |