mgbam commited on
Commit
fd95dae
·
verified ·
1 Parent(s): 4342899

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -2
Dockerfile CHANGED
@@ -1,10 +1,15 @@
1
  FROM python:3.10
2
 
3
- COPY requirements.txt /app/requirements.txt
4
- COPY constraints.txt /app/constraints.txt
5
  WORKDIR /app
6
 
 
 
 
 
7
  RUN pip install --no-cache-dir -r requirements.txt -c constraints.txt
 
 
8
  COPY . /app
9
 
 
10
  CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]
 
1
  FROM python:3.10
2
 
 
 
3
  WORKDIR /app
4
 
5
+ # Copy both requirements and constraints
6
+ COPY requirements.txt constraints.txt /app/
7
+
8
+ # Install pinned dependencies using constraints
9
  RUN pip install --no-cache-dir -r requirements.txt -c constraints.txt
10
+
11
+ # Copy all your code
12
  COPY . /app
13
 
14
+ # Run Streamlit
15
  CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]