-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (23 loc) · 921 Bytes
/
Dockerfile
File metadata and controls
27 lines (23 loc) · 921 Bytes
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
# This creates the docker environment for the online CPU deploy
FROM continuumio/miniconda3:latest
# OS Environment
WORKDIR /workspace
RUN apt-get update
RUN apt-get install build-essential git unzip -y
SHELL ["/bin/bash", "-c"]
# Updated to python 3.13
RUN conda create -n medpseg python=3.13
RUN echo "source activate medpseg" > ~/.bashrc
ENV PATH /opt/conda/envs/medpseg/bin:$PATH
# MEDPseg install from local copy
COPY . /workspace/medpseg
RUN wget https://github.com/MICLab-Unicamp/medpseg/releases/download/v4.0.0/data_poly.zip
RUN unzip data_poly.zip -d medpseg/medpseg
RUN rm data_poly.zip
RUN pip install medpseg/.
# Setup streamlit
RUN pip install -r medpseg/medpseg/streamlit_requirements.txt
RUN mkdir /root/.streamlit
RUN cp -v medpseg/.streamlit/config.toml /root/.streamlit/config.toml
# Entrypoint
ENTRYPOINT ["streamlit", "run", "/workspace/medpseg/streamlit_web_server.py", "--server.port", "8502"]