college-bot-v2/Dockerfile

79 lines
1.7 KiB
Docker
Raw Normal View History

2024-07-01 18:50:22 +01:00
FROM python:3.12
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
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 01:18:51 +01:00
RUN DEBIAN_FRONTEND=noninteractive apt-get update
2024-01-15 10:42:34 +00:00
# Install chrome dependencies
2024-07-01 18:50:22 +01:00
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
#webext-ublock-origin-chromium \
#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
#
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
# chromium-common \
# chromium-driver \
# chromium-sandbox
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-05-31 02:23:42 +01:00
libmagic-dev
RUN python3 -m venv /app/venv
2024-01-15 10:23:52 +00:00
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/
2024-01-15 10:23:52 +00:00
CMD ["/app/venv/bin/python", "main.py"]