-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
51 lines (40 loc) · 1.02 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
FROM python:3.10
ARG USER=sigurd
ARG HOME_DIR=/home/$USER
ARG BOT_DIR=$HOME_DIR/bot
ENV SUPERCRONIC_URL https://github.com/aptible/supercronic/releases/download/v0.1.12/supercronic-linux-amd64
ENV SUPERCRONIC supercronic-linux-amd64
ENV SUPERCRONIC_SHA1SUM 048b95b48b708983effb2e5c935a1ef8483d9e3e
# RUN apk add --no-cache --update \
# curl \
# tzdata
RUN apt-get update && apt-get install -y \
ffmpeg \
libavcodec-extra
RUN curl -fsSLO "$SUPERCRONIC_URL" \
&& echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - \
&& chmod +x "$SUPERCRONIC" \
&& mv "$SUPERCRONIC" "/usr/local/bin/${SUPERCRONIC}" \
&& ln -s "/usr/local/bin/${SUPERCRONIC}" /usr/local/bin/supercronic
RUN adduser \
--disabled-password \
--uid 1000 \
$USER
USER $USER
RUN mkdir -p $BOT_DIR
ENV PYTHONPATH=$BOT_DIR
RUN pip install --no-cache-dir \
EdgeGPT \
GoogleBard \
hugchat \
langchain \
lyricsgenius \
openai \
pydub \
revChatGPT \
semaphore-bot \
signalbot \
tekore \
tinydb
WORKDIR $BOT_DIR
ENTRYPOINT ["sh", "docker-entrypoint.sh"]