modified index.js

This commit is contained in:
yoshi 2025-04-29 12:22:48 -07:00
parent a4b19c9afa
commit 0260a24da1
7 changed files with 93 additions and 16 deletions

View file

@ -4,7 +4,7 @@ WORKDIR /app
RUN pip install --no-cache-dir jupyter flask awscli flask_cors nbconvert nbformat
COPY entrypoint.sh .
COPY notebook.ipynb .
COPY notebooks ./notebooks
RUN chmod +x entrypoint.sh

View file

@ -15,7 +15,6 @@ while true; do
if [ "$new_mod" -ne "$last_mod" ]; then
last_mod=$new_mod
jupyter nbconvert --to notebook --execute --inplace --ExecutePreprocessor.timeout=0 notebook.ipynb
echo "Notebook executed; restarting..."
fi
sleep 1

View file

@ -6,7 +6,7 @@ kill_timeout = 5
dockerfile = "Dockerfile"
[env]
PORT = "3006"
PORT = "3006"
[[services]]
internal_port = 3006