komyu1227 commited on
Commit
63b80c9
·
1 Parent(s): f27439b

fix dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -4
Dockerfile CHANGED
@@ -8,16 +8,19 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata \
8
  ffmpeg \
9
  && apt-get -y clean all
10
 
 
 
 
 
 
11
  RUN curl -LsSf https://astral.sh/uv/install.sh | sh
12
- ENV PATH="/root/.local/bin/:$PATH"
13
- RUN chmod +x /root/.local/bin/uv
14
 
15
  RUN uv python install 3.11
16
 
17
- WORKDIR /app
18
  RUN git clone https://github.com/reazon-research/ReazonSpeech
19
 
20
- COPY . .
21
 
22
  RUN uv sync
23
 
 
8
  ffmpeg \
9
  && apt-get -y clean all
10
 
11
+ RUN useradd -m -u 1000 user
12
+ USER user
13
+ ENV HOME=/home/user \
14
+ PATH=/home/user/.local/bin:$PATH
15
+
16
  RUN curl -LsSf https://astral.sh/uv/install.sh | sh
 
 
17
 
18
  RUN uv python install 3.11
19
 
20
+ WORKDIR $HOME/app
21
  RUN git clone https://github.com/reazon-research/ReazonSpeech
22
 
23
+ COPY --chown=user . $HOME/app
24
 
25
  RUN uv sync
26