binary1ne commited on
Commit
cdfc8b3
·
verified ·
1 Parent(s): c21f24c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -14
Dockerfile CHANGED
@@ -6,31 +6,26 @@ ENV DEBIAN_FRONTEND=noninteractive \
6
  PYTHONUNBUFFERED=1
7
 
8
  # Install required OS packages (minimal set)
9
- RUN apt-get update && \
10
- apt-get install -y --no-install-recommends \
11
  curl \
12
- sudo \
13
  ca-certificates \
 
14
  git \
15
  wget \
16
  procps \
17
  git-lfs \
 
18
  unzip \
 
 
 
19
  bzip2 \
20
  libx11-6 \
21
  build-essential \
22
  libsndfile-dev \
23
- && rm -rf /var/lib/apt/lists/*
24
-
25
- # Install Miniconda
26
- ENV CONDA_AUTO_UPDATE_CONDA=false \
27
- PATH=$HOME/miniconda/bin:$PATH
28
-
29
- RUN curl -sLo /tmp/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py39_4.10.3-Linux-x86_64.sh \
30
- && chmod +x /tmp/miniconda.sh \
31
- && /tmp/miniconda.sh -b -p /home/user/miniconda \
32
- && rm /tmp/miniconda.sh \
33
- && /home/user/miniconda/bin/conda clean -ya
34
 
35
  # Clone repository
36
  RUN git clone https://github.com/browser-use/web-ui.git /web-ui
@@ -42,6 +37,20 @@ RUN adduser --disabled-password --gecos '' --shell /bin/bash user \
42
  RUN echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-user
43
  USER user
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  # Create and activate Conda environment with Python 3.11
46
  RUN conda create -y -n webui python=3.11 && \
47
  echo "conda activate webui" >> ~/.bashrc
 
6
  PYTHONUNBUFFERED=1
7
 
8
  # Install required OS packages (minimal set)
9
+ RUN rm -f /etc/apt/sources.list.d/*.list && \
10
+ apt-get update && apt-get install -y --no-install-recommends \
11
  curl \
 
12
  ca-certificates \
13
+ sudo \
14
  git \
15
  wget \
16
  procps \
17
  git-lfs \
18
+ zip \
19
  unzip \
20
+ htop \
21
+ vim \
22
+ nano \
23
  bzip2 \
24
  libx11-6 \
25
  build-essential \
26
  libsndfile-dev \
27
+ software-properties-common \
28
+ && rm -rf /var/lib/apt/lists/*
 
 
 
 
 
 
 
 
 
29
 
30
  # Clone repository
31
  RUN git clone https://github.com/browser-use/web-ui.git /web-ui
 
37
  RUN echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-user
38
  USER user
39
 
40
+ # All users can use /home/user as their home directory
41
+ ENV HOME=/home/user
42
+ RUN mkdir $HOME/.cache $HOME/.config \
43
+ && chmod -R 777 $HOME
44
+
45
+ # Set up the Conda environment
46
+ ENV CONDA_AUTO_UPDATE_CONDA=false \
47
+ PATH=$HOME/miniconda/bin:$PATH
48
+ RUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py39_4.10.3-Linux-x86_64.sh \
49
+ && chmod +x ~/miniconda.sh \
50
+ && ~/miniconda.sh -b -p ~/miniconda \
51
+ && rm ~/miniconda.sh \
52
+ && conda clean -ya
53
+
54
  # Create and activate Conda environment with Python 3.11
55
  RUN conda create -y -n webui python=3.11 && \
56
  echo "conda activate webui" >> ~/.bashrc