Skip to content

Commit

Permalink
update DockerFile to make sure container working
Browse files Browse the repository at this point in the history
  • Loading branch information
cl117 committed Sep 11, 2024
1 parent 225772e commit 14e29ba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions flask/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand All @@ -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"
3 changes: 1 addition & 2 deletions flask/docker/Dockerfile-synbiohub
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion flask/start.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 14e29ba

Please sign in to comment.