ayymen commited on
Commit
5958d90
1 Parent(s): 3ee872f

Don't create user

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -12
Dockerfile CHANGED
@@ -21,16 +21,6 @@
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
@@ -46,7 +36,7 @@ RUN --mount=target=/tmp/requirements.txt,source=requirements.txt pip install
46
  # Set the working directory to the user's home directory
47
  WORKDIR $HOME/app
48
 
49
- # Copy the current directory contents into the container at $HOME/app setting the owner to the user
50
- COPY --chown=user . $HOME/app
51
 
52
  CMD ["python", "app.py"]
 
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
 
36
  # Set the working directory to the user's home directory
37
  WORKDIR $HOME/app
38
 
39
+ # Copy the current directory contents into the container at $HOME/app
40
+ COPY . $HOME/app
41
 
42
  CMD ["python", "app.py"]