feat: add StemAtlas Streamlit app, explorer, Docker deployment, blog charts
This commit is contained in:
+4
-8
@@ -13,13 +13,9 @@ WORKDIR /home/app/app
|
||||
# Copy project files
|
||||
COPY . /home/app/app
|
||||
|
||||
# Upgrade pip and install either pinned requirements or runtime defaults
|
||||
# Upgrade pip and install all project dependencies from pyproject.toml
|
||||
RUN python -m pip install --upgrade pip
|
||||
RUN if [ -f requirements.txt ]; then \
|
||||
pip install -r requirements.txt; \
|
||||
else \
|
||||
pip install uv streamlit duckdb; \
|
||||
fi
|
||||
RUN pip install .
|
||||
|
||||
# Fix permissions
|
||||
RUN chown -R app:app /home/app
|
||||
@@ -32,5 +28,5 @@ EXPOSE 8501
|
||||
# Simple healthcheck that queries the Streamlit root
|
||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=10s CMD curl -f http://localhost:8501/ || exit 1
|
||||
|
||||
# Run the Streamlit app via uv as preferred in this project
|
||||
CMD ["uv", "run", "streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
||||
# Run the multi-page Streamlit app
|
||||
CMD ["streamlit", "run", "Home.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
||||
|
||||
Reference in New Issue
Block a user