recycleactor commited on
Commit
3ad29b0
·
verified ·
1 Parent(s): 97283f2

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -7
Dockerfile CHANGED
@@ -15,17 +15,15 @@ RUN apt-get update \
15
  python3-pip \
16
  ffmpeg \
17
  && pip3 install --no-cache-dir --break-system-packages yt-dlp \
18
- && rm -rf /var/lib/apt/lists/* \
19
- && useradd -m -u 1000 user \
20
- && mkdir -p /home/user/app \
21
- && chown -R user:user /home/user/app
22
 
23
- USER user
24
- ENV HOME=/home/user
 
25
  WORKDIR $HOME/app
26
 
27
  # Get compiled binaries from builder's cargo install directory
28
- COPY --from=builder --chown=user /usr/src/app/dzmedia $HOME/app/dzmedia
29
 
30
  ENV BIND_ADDR=0.0.0.0
31
  ENV PORT=7860
 
15
  python3-pip \
16
  ffmpeg \
17
  && pip3 install --no-cache-dir --break-system-packages yt-dlp \
18
+ && rm -rf /var/lib/apt/lists/*
 
 
 
19
 
20
+ # HuggingFace требует user с UID 1000, он уже существует в Ubuntu 24.04
21
+ USER 1000
22
+ ENV HOME=/home/ubuntu
23
  WORKDIR $HOME/app
24
 
25
  # Get compiled binaries from builder's cargo install directory
26
+ COPY --from=builder --chown=1000:1000 /usr/src/app/dzmedia $HOME/app/dzmedia
27
 
28
  ENV BIND_ADDR=0.0.0.0
29
  ENV PORT=7860