honey234 commited on
Commit
c3d87c4
·
1 Parent(s): 084be66
Files changed (1) hide show
  1. Dockerfile +3 -4
Dockerfile CHANGED
@@ -28,11 +28,11 @@ RUN apt-get update && apt-get install -y wget unzip && \
28
  rm google-chrome-stable_current_amd64.deb && \
29
  apt-get clean
30
 
31
- # Update the package list and install wget, unzip, and Firefox
32
  # RUN apt-get update && apt-get install -y wget unzip \
33
  # && apt-get install -y firefox-esr \
34
  # && apt-get clean
35
- # RUN which firefox
36
  RUN useradd -m -u 1000 user
37
  USER user
38
  ENV HOME=/home/user \
@@ -48,5 +48,4 @@ RUN pip install --no-cache-dir -r requirements.txt
48
 
49
  # Run the Selenium script
50
  # CMD ["gunicorn", "-b", "0.0.0.0:7860","app:app"]
51
- # CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
52
- CMD python app.py
 
28
  rm google-chrome-stable_current_amd64.deb && \
29
  apt-get clean
30
 
31
+ # # Update the package list and install wget, unzip, and Firefox
32
  # RUN apt-get update && apt-get install -y wget unzip \
33
  # && apt-get install -y firefox-esr \
34
  # && apt-get clean
35
+ RUN which google-chrome
36
  RUN useradd -m -u 1000 user
37
  USER user
38
  ENV HOME=/home/user \
 
48
 
49
  # Run the Selenium script
50
  # CMD ["gunicorn", "-b", "0.0.0.0:7860","app:app"]
51
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]