-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (28 loc) · 793 Bytes
/
Dockerfile
File metadata and controls
36 lines (28 loc) · 793 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
FROM golang:1.23-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -o omnitranscripts
FROM alpine:latest
# Install runtime dependencies
RUN apk add --no-cache \
ffmpeg \
python3 \
py3-pip \
&& pip3 install yt-dlp
# Install whisper.cpp
RUN apk add --no-cache git make g++ \
&& git clone https://github.com/ggerganov/whisper.cpp.git /tmp/whisper \
&& cd /tmp/whisper \
&& make \
&& cp main /usr/local/bin/whisper.cpp \
&& bash ./models/download-ggml-model.sh base.en \
&& mkdir -p /usr/local/share/whisper \
&& cp models/ggml-base.en.bin /usr/local/share/whisper/ \
&& rm -rf /tmp/whisper
WORKDIR /app
COPY --from=builder /app/omnitranscripts .
COPY .env .
EXPOSE 3000
CMD ["./omnitranscripts"]