aboutsummaryrefslogblamecommitdiff
path: root/Containerfile
blob: 28ae58d857278000cecaabb6bf70a15d239b32f7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                         
                        










                                          
                                             














                                            
FROM ghcr.io/void-linux/void-musl:d1ee412

RUN xbps-install -Suy \
	make \
	gcc \
	shadow \
	python3 \
	python3-async-timeout \
	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-virtualenv \
	python3-youtube-dl

RUN useradd --create-home --shell /bin/sh app
USER app

WORKDIR /app

RUN virtualenv --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 --chown=app:app utils ./utils
RUN cd utils && make
COPY bc_funcs ./bc_funcs
COPY cogs ./cogs

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