aboutsummaryrefslogtreecommitdiff
path: root/Containerfile
blob: 61947e2460d5f98f9c9b02c8862136742a56d05d (plain) (blame)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM ghcr.io/void-linux/void-musl:20240526R1

RUN xbps-install -Suy && xbps-install -y \
	make \
	gcc \
	shadow \
	python3 \
	python3-async-timeout \
	python3-aiohttp \
	python3-GitPython \
	python3-colorama \
	python3-dateutil \
	python3-pytz \
	python3-grpcio \
	python3-google-api-core \
	python3-google-api-python-client \
	python3-google-auth \
	python3-google-auth-oauthlib \
	python3-Pillow \
	python3-pynacl \
	python3-requests \
	python3-six \
	python3-pysocks \
	python3-trio-websocket \
	python3-wsproto \
	python3-sniffio \
	python3-outcome \
	python3-h11 \
	python3-pathlib2 \
	python3-urllib3 \
	yt-dlp \
	ffmpeg6

# Can't do non-rootless user because we can't mount the various config files as
# a non-root user. If we ignore the write operations then this would work just
# fine
# RUN useradd --create-home --shell /bin/sh app
# USER app

WORKDIR /app

RUN python -m venv --system-site-packages venv
ADD requirements.txt requirements.txt
RUN venv/bin/pip install -r requirements.txt

COPY main.py bot.py palette.png ./
COPY utils ./utils
RUN cd utils && make
COPY bc_funcs ./bc_funcs
COPY cogs ./cogs

CMD [ "venv/bin/python3", "./main.py" ]