-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathDockerfile
More file actions
53 lines (37 loc) · 995 Bytes
/
Dockerfile
File metadata and controls
53 lines (37 loc) · 995 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Use Node.js for frontend build
FROM node:20-slim as frontend-builder
# Install bun
RUN npm install -g bun
# Set working directory
WORKDIR /app
# Copy package files
COPY package.json bun.lockb ./
# Install dependencies
RUN bun install
# Copy frontend source
COPY . .
# Build frontend
RUN bun run build
# Use Python for the main application
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
# Copy Python requirements
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY . .
# Copy built frontend from frontend-builder
COPY --from=frontend-builder /app/static ./static
# Create necessary directories
RUN mkdir -p static/audio static/transcripts data/audio data/transcripts
# Expose port
EXPOSE 8080
# Run the application
CMD ["python", "app.py"]