-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (29 loc) · 1.12 KB
/
Dockerfile
File metadata and controls
42 lines (29 loc) · 1.12 KB
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
FROM debian:bookworm-slim
LABEL description="SinusBot - Discord only image"
LABEL version="1.0.3"
# Install dependencies and clean up afterwards
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates bzip2 unzip curl python3.11 procps libpci3 libxslt1.1 libxkbcommon0 locales && \
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* && \
ln -s /usr/bin/python3.11 /usr/bin/python3
# Set locale
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
WORKDIR /opt/sinusbot
ADD install.sh .
RUN chmod 755 install.sh
# Download/Install SinusBot
RUN bash install.sh sinusbot
# Download/Install yt-dlp
RUN bash install.sh yt-dlp
# Download/Install Text-to-Speech
RUN bash install.sh text-to-speech
ADD entrypoint.sh .
RUN chmod 755 entrypoint.sh
EXPOSE 8087
VOLUME ["/opt/sinusbot/data", "/opt/sinusbot/scripts"]
ENTRYPOINT ["/opt/sinusbot/entrypoint.sh"]
HEALTHCHECK --interval=1m --timeout=10s \
CMD curl --no-keepalive -f http://localhost:8087/api/v1/botId || exit 1