college-bot-v2/Dockerfile

39 lines
835 B
Docker
Raw Normal View History

2024-01-15 10:17:00 +00:00
# FROM python:3.11-bookworm
FROM ubuntu:latest
2024-01-15 10:23:52 +00:00
WORKDIR /app
RUN DEBIAN_FRONTEND=noninteractive apt-get update
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 \
# chromium \
# chromium-driver \
# chromium-sandbox \
# chromium-shell \
2024-01-03 15:45:41 +00:00
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 \
python3-virtualenv
2024-01-15 10:23:52 +00:00
RUN virtualenv /app/venv
RUN /app/venv/bin/pip install --upgrade --no-input pip wheel setuptools
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
COPY ./src/ /app/
COPY ./src/cogs/ /app/cogs/
2024-01-15 10:23:52 +00:00
CMD ["/app/venv/bin/python", "main.py"]