From 06d6badf28bc1f093ff86ffd7c6df1cbba26b1b3 Mon Sep 17 00:00:00 2001 From: itqop Date: Sun, 23 Feb 2025 18:44:08 +0300 Subject: [PATCH] add Dockerfiles --- speech_service/Dockerfile | 15 +++++++++++++++ telegram_bot/Dockerfile | 10 ++++++++++ 2 files changed, 25 insertions(+) create mode 100644 speech_service/Dockerfile create mode 100644 telegram_bot/Dockerfile diff --git a/speech_service/Dockerfile b/speech_service/Dockerfile new file mode 100644 index 0000000..fb5a885 --- /dev/null +++ b/speech_service/Dockerfile @@ -0,0 +1,15 @@ +FROM nvidia/cuda:12.2.0-runtime-ubuntu22.04 + +RUN apt update && apt install -y python3.9 python3-pip curl pciutils lshw && \ + rm -rf /var/lib/apt/lists/* + +WORKDIR /app +COPY requirements.txt ./ +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . + +ENV NVIDIA_VISIBLE_DEVICES=all +ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility + +CMD ["python3", "main.py"] diff --git a/telegram_bot/Dockerfile b/telegram_bot/Dockerfile new file mode 100644 index 0000000..54e2f7a --- /dev/null +++ b/telegram_bot/Dockerfile @@ -0,0 +1,10 @@ +FROM python:3.9-slim + +WORKDIR /app + +COPY requirements.txt ./ +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . + +CMD ["python", "main.py"]