From 14e29bacc2ea1821fd5eef74d7ed492bcb11a31c Mon Sep 17 00:00:00 2001 From: cl117 Date: Wed, 11 Sep 2024 11:12:29 -0600 Subject: [PATCH] update DockerFile to make sure container working --- flask/docker/Dockerfile | 5 ++--- flask/docker/Dockerfile-synbiohub | 3 +-- flask/start.sh | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/flask/docker/Dockerfile b/flask/docker/Dockerfile index ba89039..f071d46 100644 --- a/flask/docker/Dockerfile +++ b/flask/docker/Dockerfile @@ -12,7 +12,7 @@ RUN ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime && \ dpkg-reconfigure -f noninteractive tzdata RUN apt-get update && \ - apt-get install -y software-properties-common && \ + apt-get install -y software-properties-common coreutils && \ add-apt-repository ppa:deadsnakes/ppa && \ apt-get update && \ apt-get install -y git cron python3.11 python3-pip python3.11-venv && \ @@ -38,5 +38,4 @@ RUN mkdir /mnt/config && \ rm -rf dumps && \ ln -s /mnt/data dumps -CMD "./start.sh" - +CMD sh -c ". ../../jammy/bin/activate && ./start.sh" diff --git a/flask/docker/Dockerfile-synbiohub b/flask/docker/Dockerfile-synbiohub index ecdec92..16e271d 100644 --- a/flask/docker/Dockerfile-synbiohub +++ b/flask/docker/Dockerfile-synbiohub @@ -40,5 +40,4 @@ RUN mkdir /mnt/config && \ ADD config-synbiohub.json /mnt/config/config.json -CMD "./start.sh" - +CMD sh -c ". ../../jammy/bin/activate && ./start.sh" diff --git a/flask/start.sh b/flask/start.sh index 66c1465..2b9765f 100755 --- a/flask/start.sh +++ b/flask/start.sh @@ -1,7 +1,7 @@ #!/bin/bash echo "Starting SBOLExplorer" - +source ../../jammy/bin/activate export FLASK_APP=explorer.py export FLASK_ENV=development flask run --host=0.0.0.0 --port=13162