-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (29 loc) · 971 Bytes
/
Copy pathDockerfile
File metadata and controls
37 lines (29 loc) · 971 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Base image - supports both CPU and GPU (NVIDIA CUDA)
# For GPU: Use nvidia/cuda:12.1-runtime-ubuntu22.04 as base
# For CPU: Use python:3.10-slim
ARG BASE_IMAGE=python:3.10-slim
FROM ${BASE_IMAGE}
# Install system dependencies
RUN apt-get update && apt-get install -y \
ffmpeg \
libsndfile1 \
git \
curl \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip setuptools wheel && \
pip install --no-cache-dir -r requirements.txt
# Copy the rest of the code
COPY . .
# Set environment variables
ENV PYTHONPATH=/app
ENV OUTPUT_DIR=/app/output
ENV SEAMLESS_DEVICE=auto
# Create necessary directories
RUN mkdir -p /app/input /app/output/translated /app/output/metadata /app/output/logs /app/output/backups /app/config
# Expose API port
EXPOSE 5000
# Entry point will be handled by docker-compose or overridden
CMD ["python", "tool/main.py", "--help"]