danielkovtun commited on
Commit
7d59aa6
·
1 Parent(s): 1e15feb

chore: cache long-running stages and use add vs copy

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -1,11 +1,13 @@
1
  FROM continuumio/miniconda3
2
 
3
  WORKDIR /usr/src/app
4
- COPY . .
5
- # install dependcies
6
- RUN conda install -y pandas numpy scikit-learn
7
  RUN pip install --no-cache-dir -r requirements.txt
 
8
  EXPOSE 7860
9
  ENV GRADIO_SERVER_NAME="0.0.0.0"
10
 
 
 
11
  CMD ["python", "inference_app.py"]
 
1
  FROM continuumio/miniconda3
2
 
3
  WORKDIR /usr/src/app
4
+ # install dependencies
5
+ ADD requirements.txt .
 
6
  RUN pip install --no-cache-dir -r requirements.txt
7
+
8
  EXPOSE 7860
9
  ENV GRADIO_SERVER_NAME="0.0.0.0"
10
 
11
+ ADD . .
12
+
13
  CMD ["python", "inference_app.py"]