aboutsummaryrefslogtreecommitdiff
path: root/Containerfile
diff options
context:
space:
mode:
authorLuca Matei Pintilie <luca@lucamatei.com>2024-03-23 12:41:06 +0000
committerLuca Matei Pintilie <luca@lucamatei.com>2024-03-23 12:41:06 +0000
commit7d87635b9539e5c5f263f39428c1c76385ca827a (patch)
treec38cede7a2889e4f1358319ac0a90e21a3597d33 /Containerfile
parent88c008973044f648cf439a94299a129754140086 (diff)
downloadsteve-bot-7d87635b9539e5c5f263f39428c1c76385ca827a.tar
steve-bot-7d87635b9539e5c5f263f39428c1c76385ca827a.tar.gz
steve-bot-7d87635b9539e5c5f263f39428c1c76385ca827a.tar.bz2
steve-bot-7d87635b9539e5c5f263f39428c1c76385ca827a.tar.lz
steve-bot-7d87635b9539e5c5f263f39428c1c76385ca827a.tar.xz
steve-bot-7d87635b9539e5c5f263f39428c1c76385ca827a.tar.zst
steve-bot-7d87635b9539e5c5f263f39428c1c76385ca827a.zip
Add container setup
Diffstat (limited to 'Containerfile')
-rw-r--r--Containerfile39
1 files changed, 39 insertions, 0 deletions
diff --git a/Containerfile b/Containerfile
new file mode 100644
index 0000000..01d7b07
--- /dev/null
+++ b/Containerfile
@@ -0,0 +1,39 @@
+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-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 --no-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" ]