sezerkutluk commited on
Commit
30937b5
·
verified ·
1 Parent(s): ea2cd76

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +27 -0
Dockerfile ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM continuumio/miniconda3:latest
2
+
3
+ RUN apt-get update && apt-get install -y --no-install-recommends \
4
+ build-essential \
5
+ curl \
6
+ git \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ RUN conda create -c conda-forge -y -n main python=3.12.10 \
10
+ && conda create -c conda-forge -y -n inseq python=3.12.10 \
11
+ && conda clean -afy
12
+
13
+ RUN git clone https://github.com/maciap/Virgil.git /src
14
+
15
+ WORKDIR /src/Virgil
16
+
17
+ RUN conda run -n main pip install --no-cache-dir -r requirements_fix.txt \
18
+ && conda run -n inseq pip install --no-cache-dir -r xai-inseq-requirements.txt
19
+
20
+ EXPOSE 8501
21
+
22
+ HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
23
+
24
+ ENTRYPOINT ["bash", "-c", "\
25
+ conda run -n inseq python -m uvicorn inseq_service.app:app --host 0.0.0.0 --port 8001 --log-level info & \
26
+ conda run --no-capture-output -n main streamlit run Navigator.py --server.port=8501 --server.address=0.0.0.0 \
27
+ "]