diff --git a/flask/docker/Dockerfile-synbiohub b/flask/docker/Dockerfile-synbiohub index 04ba3ef..ecdec92 100644 --- a/flask/docker/Dockerfile-synbiohub +++ b/flask/docker/Dockerfile-synbiohub @@ -1,13 +1,25 @@ FROM ubuntu:22.04 -MAINTAINER Michael Zhang + +#Set the timezone environment variables to avoid interaction +ENV DEBIAN_FRONTEND=noninteractive +ENV TZ=America/New_York + +# Install tzdata without interaction +RUN apt-get update && apt-get install -y tzdata + +# Set timezone +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 && \ add-apt-repository ppa:deadsnakes/ppa && \ apt-get update && \ - apt-get install -y git python3.10 python3-pip && \ - python3.10 -m pip install pip --upgrade && \ - git clone https://github.com/michael13162/SBOLExplorer.git && \ + apt-get install -y git cron python3.11 python3-pip python3.11-venv && \ + python3.11 -m pip install pip --upgrade && \ + python3.11 -m venv jammy && \ + . jammy/bin/activate && \ + git clone --branch change_dependencies https://github.com/SynBioDex/SBOLExplorer.git && \ cd SBOLExplorer/flask && \ pip install -r requirements.txt && \ crontab update.cron