-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
32 lines (24 loc) · 893 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
# Use the official Python runtime as a base image
FROM python:3.13-slim-bookworm
# Set the working directory inside the container
WORKDIR /ABSBOT
# Copy requirements file
COPY Scripts/requirements.txt /ABSBOT/requirements.txt
# Install needed packages specified in requirements.txt
RUN pip install discord.py-interactions[voice] \
&& pip install --trusted-host pypi.python.org -r requirements.txt
# Install dependencies (ffmpeg, libffi, etc.)
RUN set -ex \
&& apt-get update \
&& apt-get install -y ffmpeg libffi-dev libnacl-dev \
&& apt-get upgrade -y \
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
# Copy the rest of the application code
COPY Scripts/ /ABSBOT
# Health check
HEALTHCHECK --interval=1m --timeout=10s --retries=1 \
CMD python3 healthcheck.py || exit 1
# Set the default command
CMD ["python", "main.py"]