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" ]