tenseleyflow/jubjubword / 009f503

Browse files

dockerfile, deps

Authored by espadonne
SHA
009f503c893cebce84fe79399cd369c665fa7bc1
Parents
16e5f2b
Tree
5dadcab

2 changed files

StatusFile+-
A backend/Dockerfile 30 0
M backend/requirements.txt 3 1
backend/Dockerfileadded
@@ -0,0 +1,30 @@
1
+FROM python:3.11-slim
2
+
3
+# Install system dependencies for espeak-ng
4
+RUN apt-get update && apt-get install -y \
5
+    espeak-ng \
6
+    espeak-ng-data \
7
+    libespeak-ng1 \
8
+    && rm -rf /var/lib/apt/lists/*
9
+
10
+# Set working directory
11
+WORKDIR /app
12
+
13
+# Copy requirements and install Python deps
14
+COPY requirements.txt .
15
+RUN pip install --no-cache-dir -r requirements.txt
16
+
17
+# Copy the rest of the application
18
+COPY . .
19
+
20
+# Create media directory
21
+RUN mkdir -p media/audio
22
+
23
+# Collect static files
24
+RUN python manage.py collectstatic --noinput
25
+
26
+# Expose port
27
+EXPOSE 8000
28
+
29
+# Run the application
30
+CMD ["gunicorn", "--bind", "0.0.0.0:8000", "jubjub.wsgi:application"]
backend/requirements.txtmodified
@@ -4,4 +4,6 @@ django-cors-headers==4.7.0
44
 djangorestframework==3.16.0
55
 sqlparse==0.5.3
66
 whitenoise==6.6.0
7
-gunicorn==21.2.0
7
+gunicorn==21.2.0
8
+phonemizer==3.2.1
9
+pydub==0.25.1