aboutsummaryrefslogtreecommitdiff
path: root/Containerfile
diff options
context:
space:
mode:
authorLuca Matei Pintilie <luca@lucamatei.com>2024-03-25 17:30:33 +0000
committerLuca Matei Pintilie <luca@lucamatei.com>2024-03-25 17:30:33 +0000
commit35ca449c9dfead2a8039c796ae7ba80881bf9813 (patch)
treeed870b2e326db9cbf0807ec8284587d7c6782056 /Containerfile
parent5d6b5913a99607a147466b666c89af9a62814613 (diff)
downloadsteve-bot-35ca449c9dfead2a8039c796ae7ba80881bf9813.tar
steve-bot-35ca449c9dfead2a8039c796ae7ba80881bf9813.tar.gz
steve-bot-35ca449c9dfead2a8039c796ae7ba80881bf9813.tar.bz2
steve-bot-35ca449c9dfead2a8039c796ae7ba80881bf9813.tar.lz
steve-bot-35ca449c9dfead2a8039c796ae7ba80881bf9813.tar.xz
steve-bot-35ca449c9dfead2a8039c796ae7ba80881bf9813.tar.zst
steve-bot-35ca449c9dfead2a8039c796ae7ba80881bf9813.zip
Drop Pipfile support
We can just use requirements.txt, no point in supporting 2 package managers Also updated container support
Diffstat (limited to '')
-rw-r--r--Containerfile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Containerfile b/Containerfile
index 28ae58d..362bbcc 100644
--- a/Containerfile
+++ b/Containerfile
@@ -22,8 +22,11 @@ RUN xbps-install -Suy \
python3-virtualenv \
python3-youtube-dl
-RUN useradd --create-home --shell /bin/sh app
-USER app
+# 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
@@ -32,7 +35,7 @@ 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
+COPY utils ./utils
RUN cd utils && make
COPY bc_funcs ./bc_funcs
COPY cogs ./cogs