ADD read-only flag to run script and ADD gitignore to source dir
This commit is contained in:
parent
08f5d34079
commit
cc6f03d27b
2 changed files with 6 additions and 1 deletions
|
@ -46,6 +46,7 @@ echo "Starting container..."
|
||||||
$CONTAINER_CMD run --name ${CONTAINER_NAME} \
|
$CONTAINER_CMD run --name ${CONTAINER_NAME} \
|
||||||
-p 8000:8000 \
|
-p 8000:8000 \
|
||||||
-v "$SOURCE_DIR":/home/appuser/app/source${VOLUME_FLAG} \
|
-v "$SOURCE_DIR":/home/appuser/app/source${VOLUME_FLAG} \
|
||||||
|
--read-only \
|
||||||
--security-opt no-new-privileges:true \
|
--security-opt no-new-privileges:true \
|
||||||
--cap-drop ALL \
|
--cap-drop ALL \
|
||||||
--user 1000:1000 \
|
--user 1000:1000 \
|
||||||
|
@ -66,4 +67,4 @@ if [ $? -eq 0 ]; then
|
||||||
else
|
else
|
||||||
echo "Failed to start container."
|
echo "Failed to start container."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
4
source/.gitignore
vendored
Normal file
4
source/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# Ignore everything in this directory
|
||||||
|
*
|
||||||
|
# Except this file
|
||||||
|
!.gitignore
|
Loading…
Add table
Add a link
Reference in a new issue