2024-06-12 00:34:14 +01:00
|
|
|
FROM python:3.11-slim
|
2024-01-02 22:59:47 +00:00
|
|
|
|
2024-06-03 15:42:27 +01:00
|
|
|
LABEL org.opencontainers.image.source https://git.i-am.nexus/nex/college-bot-v2
|
2024-06-03 15:44:59 +01:00
|
|
|
LABEL org.opencontainers.image.url https://git.i-am.nexus/nex/college-bot-v2
|
2024-06-03 15:42:27 +01:00
|
|
|
LABEL org.opencontainers.image.licenses AGPL-3.0
|
|
|
|
LABEL org.opencontainers.image.title "College Bot v2"
|
|
|
|
LABEL org.opencontainers.image.description "Version 2 of jimmy."
|
|
|
|
|
2024-01-15 10:23:52 +00:00
|
|
|
WORKDIR /app
|
|
|
|
|
2024-06-12 00:24:13 +01:00
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get upgrade -y
|
2024-01-15 10:42:34 +00:00
|
|
|
|
|
|
|
# Install chrome dependencies
|
2024-06-12 00:24:13 +01:00
|
|
|
# RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
|
|
# gconf-service \
|
|
|
|
# libasound2 \
|
|
|
|
# libatk1.0-0 \
|
|
|
|
# libc6 \
|
|
|
|
# libcairo2 \
|
|
|
|
# libcups2 \
|
|
|
|
# libdbus-1-3 \
|
|
|
|
# libexpat1 \
|
|
|
|
# libfontconfig1 \
|
|
|
|
# libgcc1 \
|
|
|
|
# libgconf-2-4 \
|
|
|
|
# libgdk-pixbuf2.0-0 \
|
|
|
|
# libglib2.0-0 \
|
|
|
|
# libgtk-3-0 \
|
|
|
|
# libnspr4 \
|
|
|
|
# libpango-1.0-0 \
|
|
|
|
# libpangocairo-1.0-0 \
|
|
|
|
# libstdc++6 \
|
|
|
|
# libx11-6 \
|
|
|
|
# libx11-xcb1 \
|
|
|
|
# libxcb1 \
|
|
|
|
# libxcomposite1 \
|
|
|
|
# libxcursor1 \
|
|
|
|
# libxdamage1 \
|
|
|
|
# libxext6 \
|
|
|
|
# libxfixes3 \
|
|
|
|
# libxi6 \
|
|
|
|
# libxrandr2 \
|
|
|
|
# libxrender1 \
|
|
|
|
# libxss1 \
|
|
|
|
# libxtst6 \
|
|
|
|
# ca-certificates \
|
|
|
|
# fonts-liberation \
|
|
|
|
# libappindicator1 \
|
|
|
|
# libnss3 \
|
|
|
|
# lsb-release \
|
|
|
|
# xdg-utils \
|
|
|
|
# chromium \
|
|
|
|
# chromium-common \
|
|
|
|
# chromium-driver \
|
|
|
|
# chromium-sandbox \
|
|
|
|
# chromium-shell \
|
|
|
|
# webext-ublock-origin-chromium
|
2024-01-15 10:42:34 +00:00
|
|
|
|
2024-06-12 00:34:14 +01:00
|
|
|
# Install general utilities
|
2024-01-15 10:51:53 +00:00
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
2024-01-03 15:45:41 +00:00
|
|
|
traceroute \
|
|
|
|
iputils-ping \
|
|
|
|
dnsutils \
|
|
|
|
net-tools \
|
|
|
|
git \
|
|
|
|
whois \
|
|
|
|
curl \
|
2024-01-15 10:17:00 +00:00
|
|
|
python3-pip \
|
2024-05-31 02:23:42 +01:00
|
|
|
python3-virtualenv \
|
|
|
|
libmagic-dev
|
2024-01-02 22:59:47 +00:00
|
|
|
|
2024-06-12 00:34:14 +01:00
|
|
|
# Install image dependencies
|
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
|
|
ffmpeg \
|
|
|
|
imagemagick
|
|
|
|
|
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/
|
2024-01-02 22:59:47 +00:00
|
|
|
|
2024-01-15 10:23:52 +00:00
|
|
|
CMD ["/app/venv/bin/python", "main.py"]
|