binary1ne commited on
Commit
0dec3e1
·
verified ·
1 Parent(s): 049f904

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -12
Dockerfile CHANGED
@@ -33,17 +33,6 @@ RUN git clone https://github.com/browser-use/web-ui.git
33
 
34
  RUN ls -la
35
 
36
- # Create a non-root user and switch to it
37
- RUN adduser --disabled-password --gecos '' --shell /bin/bash user \
38
- && chown -R user:user /web-ui
39
- RUN echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-user
40
- USER user
41
-
42
- # All users can use /home/user as their home directory
43
- ENV HOME=/home/user
44
- RUN mkdir $HOME/.cache $HOME/.config \
45
- && chmod -R 777 $HOME
46
-
47
  # Set the working directory to the newly cloned repository.
48
  WORKDIR /web-ui
49
 
@@ -77,7 +66,6 @@ RUN ls -la .venv/bin/
77
  RUN .venv/bin/pip3 install -r /web-ui/requirements.txt \
78
  && .venv/bin/playwright install --with-deps chromium
79
 
80
- RUN chown user:user /data
81
  RUN chmod -R 777 /web-ui/*
82
  # Expose the default port for the web application.
83
  EXPOSE 7860
 
33
 
34
  RUN ls -la
35
 
 
 
 
 
 
 
 
 
 
 
 
36
  # Set the working directory to the newly cloned repository.
37
  WORKDIR /web-ui
38
 
 
66
  RUN .venv/bin/pip3 install -r /web-ui/requirements.txt \
67
  && .venv/bin/playwright install --with-deps chromium
68
 
 
69
  RUN chmod -R 777 /web-ui/*
70
  # Expose the default port for the web application.
71
  EXPOSE 7860