ADD read-only flag to run script and ADD gitignore to source dir

This commit is contained in:
CaffeineFueled 2025-05-02 18:13:59 +02:00
parent 08f5d34079
commit cc6f03d27b
2 changed files with 6 additions and 1 deletions

View file

@ -46,6 +46,7 @@ echo "Starting container..."
$CONTAINER_CMD run --name ${CONTAINER_NAME} \
-p 8000:8000 \
-v "$SOURCE_DIR":/home/appuser/app/source${VOLUME_FLAG} \
--read-only \
--security-opt no-new-privileges:true \
--cap-drop ALL \
--user 1000:1000 \

4
source/.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore