-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (27 loc) · 838 Bytes
/
Dockerfile
File metadata and controls
34 lines (27 loc) · 838 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
# Base image with CUDA + Ubuntu (no Python yet)
FROM nvidia/cuda:12.8.1-cudnn-runtime-ubuntu22.04
# Set timezone
ENV TZ=America/Toronto
RUN apt-get update && apt-get install -y \
tzdata && \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Install Python and system dependencies
# Install Python & system deps
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
ffmpeg \
libsox-fmt-mp3 \
&& rm -rf /var/lib/apt/lists/*
# Install Python deps
WORKDIR /app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
# Copy app source code
COPY . .
# Make sure data folder exists
RUN mkdir -p /app/data
VOLUME ["/app/data"]
# Exposer le port sur lequel FastAPI écoute
EXPOSE 8123
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8123"]