-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
40 lines (36 loc) · 848 Bytes
/
Dockerfile
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
FROM alpine
# Install packages
RUN apk add --no-cache \
ffmpeg \
flac \
python3 \
py3-pip \
gcc \
git \
python3-dev \
musl-dev \
linux-headers
# Copy files
COPY ketard /ketard
COPY start /start
COPY config.json /config.json
COPY database.db /database.db
RUN chmod +x /start
# Install python packages
RUN pip install --no-cache-dir \
--break-system-packages \
langchain_community \
TgCrypto \
psutil \
httpx \
packaging \
gitpython \
aiosqlite \
youtube-transcript-api \
SpeechRecognition \
gradio_client \
https://github.com/KurimuzonAkuma/pyrogram/archive/dev.zip \
&& rm -rf /root/.cache/pip
# Remove build dependencies
RUN apk del gcc python3-dev musl-dev linux-headers --purge -r
CMD ["sh", "-c", "/bin/sh start"]