szymonrucinski commited on
Commit
a22ec98
1 Parent(s): cc1aa94

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -5
Dockerfile CHANGED
@@ -1,14 +1,13 @@
1
- FROM python:3.9.0
2
  ENV MPLCONFIGDIR=".config/matplotlib"
3
  RUN mkdir -m 777 .cache .config ./flagged
4
  RUN git clone https://github.com/szymonrucinski/AiRoll
5
  WORKDIR /AiRoll
6
- RUN git checkout update-reqs
7
  RUN git clone https://huggingface.co/szymonrucinski/what-a-shot
8
  RUN ls
9
  RUN mv ./what-a-shot ./model
10
- RUN pip install -r requirements.txt
 
11
  RUN mkdir -m 777 flagged
12
- RUN ls
13
  EXPOSE 7860
14
- CMD ["gradio","start_api.py"]
 
1
+ from condaforge/mambaforge
2
  ENV MPLCONFIGDIR=".config/matplotlib"
3
  RUN mkdir -m 777 .cache .config ./flagged
4
  RUN git clone https://github.com/szymonrucinski/AiRoll
5
  WORKDIR /AiRoll
 
6
  RUN git clone https://huggingface.co/szymonrucinski/what-a-shot
7
  RUN ls
8
  RUN mv ./what-a-shot ./model
9
+ RUN conda env create -f environment.yaml && conda info
10
+ RUN mamba init bash
11
  RUN mkdir -m 777 flagged
 
12
  EXPOSE 7860
13
+ CMD ["mamba", "run", "-n", "airoll", "gradio", "start_api.py"]