-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.cpu
More file actions
executable file
·63 lines (52 loc) · 1.36 KB
/
Dockerfile.cpu
File metadata and controls
executable file
·63 lines (52 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
62
63
# Use Python slim image (Debian based)
FROM python:3.14-slim
# Prevent interactive prompts during package installation
ENV DEBIAN_FRONTEND=noninteractive
# Install system dependencies
# procps: for psutil
RUN apt-get update && apt-get install -y \
ffmpeg \
git \
curl \
tzdata \
procps \
jq \
build-essential \
ninja-build \
libcairo2-dev \
pkg-config \
&& rm -rf /var/lib/apt/lists/*
# Set Mode Environment Variable
ENV SCRIBBLE_MODE="cpu"
# 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 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 start.sh /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"]