-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.cuda
More file actions
executable file
·61 lines (51 loc) · 1.36 KB
/
Dockerfile.cuda
File metadata and controls
executable file
·61 lines (51 loc) · 1.36 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Use NVIDIA CUDA 12.2 Base Image (Ubuntu 22.04)
FROM nvidia/cuda:12.2.0-runtime-ubuntu22.04
# Prevent interactive prompts during package installation
ENV DEBIAN_FRONTEND=noninteractive
# Install Python and System Dependencies
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
python3-venv \
ffmpeg \
git \
curl \
tzdata \
jq \
build-essential \
ninja-build \
libcairo2-dev \
pkg-config \
&& rm -rf /var/lib/apt/lists/*
# Set up working directory
WORKDIR /app
# Install Python Dependencies
COPY requirements.txt /app
RUN pip install --no-cache-dir meson && \
pip install --no-cache-dir -r requirements.txt
RUN rm requirements.txt
# Copy Application Code
COPY --chmod=775 start.sh /app
COPY --chmod=775 app.py /app
COPY --chmod=775 config.py /app
COPY --chmod=775 database.py /app
COPY --chmod=775 db_migrate.py /app
COPY --chmod=775 llm_engine.py /app
COPY --chmod=775 models.py /app
COPY --chmod=775 transcription_engine.py /app
COPY --chmod=775 worker.py /app
COPY --chmod=775 migrate.py /app
RUN mkdir /app/templates
COPY templates /app/templates/
# Environment Variables
ENV PUID=1000
ENV PGID=1000
ENV TZ=UTC
# Make start script executable
RUN chmod +x start.sh
# Create data directories
RUN mkdir -p /data/input /data/scripts /data/archive
# Expose the WebUI port
EXPOSE 13131
# Command
CMD ["./start.sh"]