zyliu commited on
Commit
0158d31
·
1 Parent(s): 15b3c76

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -21,15 +21,15 @@ EXPOSE 27017
21
  # # RUN service mongodb start
22
  # RUN service mongod start
23
  RUN apt-get -y update && apt-get install -y software-properties-common \
24
- && add-apt-repository ppa:deadsnakes/ppa && apt install -y python3.10
25
  RUN ls /usr/bin
26
-
27
  # Copy the app code to the image
28
  COPY . /app
29
  WORKDIR /app
30
 
31
  # Install the app dependencies
32
- RUN pip install -r requirements.txt
33
 
34
  # Run the app
35
  CMD ["streamlit", "run", "app.py"]
 
21
  # # RUN service mongodb start
22
  # RUN service mongod start
23
  RUN apt-get -y update && apt-get install -y software-properties-common \
24
+ && add-apt-repository ppa:deadsnakes/ppa && apt install -y python3.10 python3.10-pip
25
  RUN ls /usr/bin
26
+ ENV PATH /usr/bin:/usr/local/bin:$PATH
27
  # Copy the app code to the image
28
  COPY . /app
29
  WORKDIR /app
30
 
31
  # Install the app dependencies
32
+ RUN python3 -m pip install -r requirements.txt
33
 
34
  # Run the app
35
  CMD ["streamlit", "run", "app.py"]