Arafath10 commited on
Commit
e11e884
1 Parent(s): 70417d1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -10,6 +10,8 @@ COPY ./requirements.txt /code/requirements.txt
10
  # Install requirements.txt
11
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
12
 
 
 
13
  # Set up a new user named "user" with user ID 1000
14
  RUN useradd -m -u 1000 user
15
  # Switch to the "user" user
@@ -24,4 +26,4 @@ WORKDIR $HOME/app
24
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
25
  COPY --chown=user . $HOME/app
26
 
27
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860","--workers","3"]
 
10
  # Install requirements.txt
11
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
12
 
13
+ RUN playwright install --with-deps
14
+
15
  # Set up a new user named "user" with user ID 1000
16
  RUN useradd -m -u 1000 user
17
  # Switch to the "user" user
 
26
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
27
  COPY --chown=user . $HOME/app
28
 
29
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]