2023-04-19 16:14:20 +00:00
|
|
|
FROM python:3.10-slim
|
2023-03-06 15:20:37 +00:00
|
|
|
|
2023-04-28 13:48:52 +00:00
|
|
|
# Set the voice language
|
|
|
|
ARG VOICE_LANGUAGE=en
|
|
|
|
|
|
|
|
RUN apt update && apt install -y ffmpeg wget libespeak1
|
2023-03-06 15:20:37 +00:00
|
|
|
WORKDIR /app
|
2023-04-19 16:14:20 +00:00
|
|
|
|
2023-04-28 13:48:52 +00:00
|
|
|
COPY ./entrypoint.sh /app
|
|
|
|
RUN chmod +x /app/entrypoint.sh
|
|
|
|
|
|
|
|
COPY ./piper /app/piper
|
|
|
|
|
2023-04-19 16:14:20 +00:00
|
|
|
COPY ./main.py /app
|
|
|
|
COPY ./database.py /app
|
2023-03-06 15:20:37 +00:00
|
|
|
COPY ./requirements.txt /app
|
2023-04-19 16:14:20 +00:00
|
|
|
|
|
|
|
RUN mkdir db_data
|
|
|
|
|
|
|
|
RUN pip install --upgrade pip
|
2023-03-06 15:20:37 +00:00
|
|
|
RUN pip install -r requirements.txt
|
2023-04-28 13:48:52 +00:00
|
|
|
ENTRYPOINT [ "/app/entrypoint.sh" ]
|