-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from compomics/update-streamlit
Fix Streamlit web server
- Loading branch information
Showing
7 changed files
with
55 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,7 @@ | ||
FROM continuumio/miniconda3:4.9.2 AS build | ||
COPY environment.yml / | ||
RUN conda env create -f environment.yml && \ | ||
conda install -c conda-forge conda-pack && \ | ||
conda-pack -n deeplc-streamlit -o /tmp/env.tar && \ | ||
mkdir /venv && cd /venv && tar xf /tmp/env.tar && \ | ||
rm /tmp/env.tar && \ | ||
/venv/bin/conda-unpack | ||
|
||
FROM debian:buster-slim AS runtime | ||
WORKDIR /deeplc | ||
COPY --from=build /venv /venv | ||
ENV VIRTUAL_ENV=/venv | ||
ENV PATH="$VIRTUAL_ENV/bin:$PATH" | ||
FROM python:3.10-slim-buster | ||
COPY . /deeplc | ||
RUN pip install "deeplc>=0.1.29" | ||
WORKDIR /deeplc | ||
RUN pip install --upgrade pip && pip install -r requirements.txt | ||
ENV DEEPLC_LIBRARY_PATH="/tmp/deeplc_library.txt" | ||
EXPOSE 8501 | ||
CMD ["streamlit", "run", "deeplc_streamlit.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
plotly | ||
pandas | ||
statsmodels | ||
streamlit>=0.88 | ||
deeplc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters