i never enjoy docker
This commit is contained in:
SpudGunMan
2025-10-23 21:26:32 -07:00
parent a36f1580b3
commit c6b5a1c708
2 changed files with 2 additions and 11 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ COPY config.template /app/config.ini
RUN chmod +x /app/script/docker/entrypoint.sh
# Add a non-root user and switch to it
RUN useradd -m appuser && usermod -a -G dialout appuser
USER appuser
# RUN useradd -m appuser && usermod -a -G dialout appuser
# USER appuser
ENTRYPOINT ["/bin/bash", "/app/script/docker/entrypoint.sh"]
-9
View File
@@ -1,13 +1,4 @@
#!/bin/bash
# if /app/logs is not writable, change ownership
if [ -w /app/logs ]; then
chown -R appuser:appuser /app/logs
fi
# if /app/data is not writable, change ownership
if [ -w /app/data ]; then
chown -R appuser:appuser /app/data
fi
# Run the bot as appuser (if you want to drop privileges)
exec python /app/mesh_bot.py