modified index.js
This commit is contained in:
parent
a4b19c9afa
commit
0260a24da1
7 changed files with 93 additions and 16 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ kill_timeout = 5
|
|||
dockerfile = "Dockerfile"
|
||||
|
||||
[env]
|
||||
PORT = "3006"
|
||||
PORT = "3006"
|
||||
|
||||
[[services]]
|
||||
internal_port = 3006
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue