Created execution script for the container image and moved code copy from Dockerfile to volume in compose. Now code changes don't require image rebuild.
11 lines
189 B
Bash
11 lines
189 B
Bash
#!/bin/sh
|
|
|
|
# Check if puudot.py exists
|
|
if [ ! -f "/code/puudot.py" ]; then
|
|
echo "Error: puudot.py not found in /code directory!"
|
|
exit 1
|
|
fi
|
|
|
|
# Run the script
|
|
python3 /code/puudot.py
|