File size: 813 Bytes
e100ef9
 
 
 
 
 
3e8820e
 
 
 
e100ef9
 
 
 
6c86e78
f632899
e100ef9
f632899
 
 
e100ef9
 
 
 
b995dc9
e100ef9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM continuumio/miniconda3

WORKDIR /code

# Create the environment:
COPY ./environment.yml /code/environment.yml

RUN conda config --set channel_priority strict
RUN conda config --add channels conda-forge
RUN conda env create -f environment.yml

# Make RUN commands use the new environment:
SHELL ["conda", "run", "-n", "plt_env", "/bin/bash", "-c"]

RUN pip install streamlit==1.23 Pillow lazyeval pandas streamlit-toggle-switch

# Demonstrate the environment is activated:
RUN echo "Make sure streamlit is installed:"
RUN python -c "import streamlit; print('streamlit: ', streamlit.__version__)"

COPY . .

# The code to run when container is started:

ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "plt_env", "streamlit", "run", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]