snirjhar-colab commited on
Commit
987f74f
·
1 Parent(s): e2fe530

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -4
Dockerfile CHANGED
@@ -16,12 +16,18 @@ RUN apt-get update && \
16
 
17
  RUN localedef -i en_US -f UTF-8 en_US.UTF-8
18
 
19
- RUN useradd -s /bin/bash -m -u 1000 user && \
20
- echo 'user ALL=(ALL) NOPASSWD:ALL' >>/etc/sudoers
21
 
22
- USER user
 
 
 
 
23
 
24
- RUN bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
 
 
25
 
26
  ENV HOME=/home/user \
27
  PATH=/home/user/.local/bin:$PATH
 
16
 
17
  RUN localedef -i en_US -f UTF-8 en_US.UTF-8
18
 
19
+ RUN useradd -m -s /bin/bash linuxbrew && \
20
+ echo 'linuxbrew ALL=(ALL) NOPASSWD:ALL' >>/etc/sudoers
21
 
22
+ USER linuxbrew
23
+ RUN bash -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
24
+
25
+ USER root
26
+ ENV PATH="/home/linuxbrew/.linuxbrew/bin:${PATH}"
27
 
28
+ RUN useradd -s /bin/bash -m -u 1000 user
29
+
30
+ USER user
31
 
32
  ENV HOME=/home/user \
33
  PATH=/home/user/.local/bin:$PATH