ayymen commited on
Commit
1b718f6
1 Parent(s): f451fd8

Install dependencies as root

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -10
Dockerfile CHANGED
@@ -21,16 +21,6 @@
21
 
22
  FROM python:3.11
23
 
24
- # Set up a new user named "user" with user ID 1000
25
- RUN useradd -m -u 1000 user
26
-
27
- # Switch to the "user" user
28
- USER user
29
-
30
- # Set home to the user's home directory
31
- ENV HOME=/home/user \
32
- PATH=/home/user/.local/bin:$PATH
33
-
34
  RUN --mount=target=/tmp/packages.txt,source=packages.txt apt-get update && xargs -r -a /tmp/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
35
 
36
  RUN --mount=target=/tmp/pre-requirements.txt,source=pre-requirements.txt pip install --no-cache-dir -r /tmp/pre-requirements.txt
@@ -49,6 +39,16 @@ COPY ./install_beamsearch_decoders.sh /workspace/nemo/scripts/asr_language_model
49
 
50
  RUN /bin/bash scripts/asr_language_modeling/ngram_lm/install_beamsearch_decoders.sh
51
 
 
 
 
 
 
 
 
 
 
 
52
  # Set the working directory to the user's home directory
53
  WORKDIR $HOME/app
54
 
 
21
 
22
  FROM python:3.11
23
 
 
 
 
 
 
 
 
 
 
 
24
  RUN --mount=target=/tmp/packages.txt,source=packages.txt apt-get update && xargs -r -a /tmp/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
25
 
26
  RUN --mount=target=/tmp/pre-requirements.txt,source=pre-requirements.txt pip install --no-cache-dir -r /tmp/pre-requirements.txt
 
39
 
40
  RUN /bin/bash scripts/asr_language_modeling/ngram_lm/install_beamsearch_decoders.sh
41
 
42
+ # Set up a new user named "user" with user ID 1000
43
+ RUN useradd -m -u 1000 user
44
+
45
+ # Switch to the "user" user
46
+ USER user
47
+
48
+ # Set home to the user's home directory
49
+ ENV HOME=/home/user \
50
+ PATH=/home/user/.local/bin:$PATH
51
+
52
  # Set the working directory to the user's home directory
53
  WORKDIR $HOME/app
54