zzk1st commited on
Commit
fd84e26
1 Parent(s): 8a9553e

Fixed dockerfile permission

Browse files
Files changed (2) hide show
  1. .gitignore +0 -5
  2. Dockerfile +7 -1
.gitignore CHANGED
@@ -1,13 +1,8 @@
1
  output/*
2
  __pycache__/*
3
- Bark/__pycache__/*
4
- *.wav
5
- Bark/request.py
6
- VoiceFixer/request.py
7
  service_logs/*
8
  convert_script_to_audio_gen_code.py
9
  /cache/
10
  VoiceParser/hubert/*
11
  VoiceParser/__pycache__
12
- config.yaml
13
  /services_logs/
 
1
  output/*
2
  __pycache__/*
 
 
 
 
3
  service_logs/*
4
  convert_script_to_audio_gen_code.py
5
  /cache/
6
  VoiceParser/hubert/*
7
  VoiceParser/__pycache__
 
8
  /services_logs/
Dockerfile CHANGED
@@ -8,6 +8,12 @@ RUN wget \
8
  && bash Miniconda3-latest-Linux-x86_64.sh -b -p /opt/miniconda3 \
9
  && rm -f Miniconda3-latest-Linux-x86_64.sh
10
 
 
 
 
 
 
 
11
  # Add conda binary to PATH variable
12
  ENV HOME=/home/user \
13
  PATH=/opt/miniconda3/bin:/home/user/.local/bin:$PATH \
@@ -15,7 +21,7 @@ ENV HOME=/home/user \
15
 
16
  # Setup conda envs
17
  WORKDIR $HOME/app
18
- COPY . .
19
 
20
  # Conda envs setup
21
  RUN bash ./scripts/EnvsSetup.sh
 
8
  && bash Miniconda3-latest-Linux-x86_64.sh -b -p /opt/miniconda3 \
9
  && rm -f Miniconda3-latest-Linux-x86_64.sh
10
 
11
+ # Set up a new user named "user" with user ID 1000
12
+ RUN useradd -m -u 1000 user
13
+
14
+ # Switch to the "user" user
15
+ USER user
16
+
17
  # Add conda binary to PATH variable
18
  ENV HOME=/home/user \
19
  PATH=/opt/miniconda3/bin:/home/user/.local/bin:$PATH \
 
21
 
22
  # Setup conda envs
23
  WORKDIR $HOME/app
24
+ COPY --chown=user . $HOME/app
25
 
26
  # Conda envs setup
27
  RUN bash ./scripts/EnvsSetup.sh