2024-01-15 10:17:00 +00:00
|
|
|
# FROM python:3.11-bookworm
|
|
|
|
FROM ubuntu:latest
|
2024-01-02 22:59:47 +00:00
|
|
|
|
2024-01-15 10:23:52 +00:00
|
|
|
WORKDIR /app
|
|
|
|
|
2024-01-02 22:59:47 +00:00
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get update
|
2024-01-06 21:43:52 +00:00
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get upgrade -y
|
2024-01-03 15:45:41 +00:00
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
|
|
|
traceroute \
|
|
|
|
iputils-ping \
|
|
|
|
dnsutils \
|
|
|
|
net-tools \
|
|
|
|
git \
|
|
|
|
ffmpeg \
|
|
|
|
imagemagick \
|
|
|
|
whois \
|
|
|
|
wget \
|
|
|
|
curl \
|
2024-01-15 10:17:00 +00:00
|
|
|
htop \
|
|
|
|
python3 \
|
|
|
|
python3-pip \
|
2024-01-15 10:23:52 +00:00
|
|
|
python3-dev \
|
2024-01-15 10:31:35 +00:00
|
|
|
python3-virtualenv \
|
|
|
|
# libglib2.0-0=2.50.3-2 \
|
|
|
|
# libnss3=2:3.26.2-1.1+deb9u1 \
|
|
|
|
# libgconf-2-4=3.2.6-4+b1 \
|
|
|
|
# libfontconfig1=2.11.0-6.7+b1
|
|
|
|
libglib2.0-0 \
|
|
|
|
libnss3 \
|
|
|
|
libgconf-2-4 \
|
|
|
|
libfontconfig1
|
2024-01-02 22:59:47 +00:00
|
|
|
|
2024-01-15 10:23:52 +00:00
|
|
|
RUN virtualenv /app/venv
|
|
|
|
RUN /app/venv/bin/pip install --upgrade --no-input pip wheel setuptools
|
2024-01-02 22:59:47 +00:00
|
|
|
|
|
|
|
COPY requirements.txt /tmp/requirements.txt
|
2024-01-15 10:23:52 +00:00
|
|
|
RUN /app/venv/bin/pip install -Ur /tmp/requirements.txt --no-input
|
2024-01-02 22:59:47 +00:00
|
|
|
|
2024-01-06 21:43:52 +00:00
|
|
|
COPY ./src/ /app/
|
|
|
|
COPY ./src/cogs/ /app/cogs/
|
2024-01-02 22:59:47 +00:00
|
|
|
|
2024-01-15 10:23:52 +00:00
|
|
|
CMD ["/app/venv/bin/python", "main.py"]
|