Update Dockerfile
Browse files- Dockerfile +7 -8
Dockerfile
CHANGED
|
@@ -28,10 +28,14 @@ RUN rm -f /etc/apt/sources.list.d/*.list && \
|
|
| 28 |
software-properties-common \
|
| 29 |
&& rm -rf /var/lib/apt/lists/*
|
| 30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
# Create a non-root user and switch to it
|
| 33 |
RUN adduser --disabled-password --gecos '' --shell /bin/bash user \
|
| 34 |
-
&& chown -R user:user /
|
| 35 |
RUN echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-user
|
| 36 |
USER user
|
| 37 |
|
|
@@ -39,14 +43,9 @@ USER user
|
|
| 39 |
ENV HOME=/home/user
|
| 40 |
RUN mkdir $HOME/.cache $HOME/.config \
|
| 41 |
&& chmod -R 777 $HOME
|
| 42 |
-
|
| 43 |
-
# Clone the web-ui repository from GitHub.
|
| 44 |
-
RUN git clone https://github.com/browser-use/web-ui.git
|
| 45 |
-
|
| 46 |
-
RUN ls -la
|
| 47 |
-
|
| 48 |
# Set the working directory to the newly cloned repository.
|
| 49 |
-
WORKDIR
|
| 50 |
|
| 51 |
RUN ls -la /web-ui
|
| 52 |
|
|
|
|
| 28 |
software-properties-common \
|
| 29 |
&& rm -rf /var/lib/apt/lists/*
|
| 30 |
|
| 31 |
+
# Clone the web-ui repository from GitHub.
|
| 32 |
+
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 |
|
|
|
|
| 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 |
|
| 50 |
RUN ls -la /web-ui
|
| 51 |
|