|
FROM nvidia/cuda:12.1.1-devel-ubuntu22.04 |
|
|
|
|
|
ARG TEXT_MODEL=llama-v3-2-3b-instruct-q6-k |
|
ARG TRANSCRIBE_MODEL=distilled-whisper-large-v3 |
|
ARG SPEECH_MODEL=xtts-v2 |
|
|
|
|
|
RUN useradd -m -u 1000 anachrovox |
|
|
|
|
|
ENV HOME=/app \ |
|
PATH=/app/.local/bin:$PATH |
|
WORKDIR /app |
|
|
|
|
|
COPY config/nginx.conf /app/nginx.conf |
|
COPY config/dispatcher.yaml /app/dispatcher.yaml |
|
COPY config/overseer.yaml /app/overseer.yaml |
|
|
|
|
|
ADD www /app/www |
|
|
|
|
|
ADD src/anachrovox /app/anachrovox |
|
|
|
|
|
RUN mkdir -p /app/logs |
|
|
|
|
|
EXPOSE 7860 |
|
|
|
|
|
RUN apt-get update && \ |
|
apt-get install -y \ |
|
bash \ |
|
git git-lfs \ |
|
curl wget procps \ |
|
htop vim \ |
|
python3-pip python3-dev \ |
|
nginx && \ |
|
rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
RUN chown -R 1000 /var/log/nginx /var/lib/nginx /app |
|
|
|
|
|
USER 1000 |
|
|
|
|
|
RUN pip3 install --no-cache-dir taproot[tools,console,av] |
|
|
|
|
|
RUN taproot install \ |
|
audio-transcription:${TRANSCRIBE_MODEL} \ |
|
text-generation:${TEXT_MODEL} \ |
|
speech-synthesis:${SPEECH_MODEL} \ |
|
--debug \ |
|
--optional |
|
|
|
|
|
COPY --chown=anachrovox --chmod=755 run.sh /app/run.sh |
|
|
|
|
|
CMD ["/app/run.sh"] |
|
|