ayymen commited on
Commit
3ee872f
·
1 Parent(s): 3e7cd23

Create user first

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -12
Dockerfile CHANGED
@@ -21,6 +21,16 @@
21
 
22
  FROM chainguard/nemo:latest-dev
23
 
 
 
 
 
 
 
 
 
 
 
24
  WORKDIR /workspace/nemo
25
 
26
  COPY ./install_beamsearch_decoders.sh /workspace/nemo/scripts/asr_language_modeling/ngram_lm/install_beamsearch_decoders.sh
@@ -33,18 +43,6 @@ RUN --mount=target=/tmp/pre-requirements.txt,source=pre-requirements.txt pip in
33
 
34
  RUN --mount=target=/tmp/requirements.txt,source=requirements.txt pip install --no-cache-dir -r /tmp/requirements.txt
35
 
36
- WORKDIR /code
37
-
38
- # Set up a new user named "user" with user ID 1000
39
- RUN useradd -m -u 1000 user
40
-
41
- # Switch to the "user" user
42
- USER user
43
-
44
- # Set home to the user's home directory
45
- ENV HOME=/home/user \
46
- PATH=/home/user/.local/bin:$PATH
47
-
48
  # Set the working directory to the user's home directory
49
  WORKDIR $HOME/app
50
 
 
21
 
22
  FROM chainguard/nemo:latest-dev
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
  WORKDIR /workspace/nemo
35
 
36
  COPY ./install_beamsearch_decoders.sh /workspace/nemo/scripts/asr_language_modeling/ngram_lm/install_beamsearch_decoders.sh
 
43
 
44
  RUN --mount=target=/tmp/requirements.txt,source=requirements.txt pip install --no-cache-dir -r /tmp/requirements.txt
45
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  # Set the working directory to the user's home directory
47
  WORKDIR $HOME/app
48