Yehor commited on
Commit
4d6b1e4
·
verified ·
1 Parent(s): e52e5b8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -31,7 +31,7 @@ RUN apt-get update && \
31
 
32
  RUN useradd -m -u 1001 hf-space
33
 
34
- USER hf-space
35
 
36
  ENV HOME=/home/hf-space \
37
  PATH=/home/hf-space/.local/bin:${PATH} \
@@ -43,7 +43,8 @@ ENV HOME=/home/hf-space \
43
  GRADIO_THEME=huggingface \
44
  SYSTEM=spaces
45
 
46
- COPY --chown=1001 . ${HOME}/app
 
47
 
48
  WORKDIR ${HOME}/app
49
 
@@ -55,10 +56,9 @@ RUN uv venv --python 3.13.2
55
 
56
  RUN uv pip install --no-cache-dir -r /home/hf-space/app/requirements.txt
57
 
58
- RUN chown -R hf-space:hf-space ${HOME}/app
59
 
60
- RUN ls -lha /home/hf-space/
61
-
62
- RUN ls -lha /home/hf-space/app/uv-pythons/cpython-3.13.2-linux-x86_64-gnu
63
 
64
  CMD ["uv", "run", "--no-cache", "--no-config", "app.py"]
 
31
 
32
  RUN useradd -m -u 1001 hf-space
33
 
34
+ # USER hf-space
35
 
36
  ENV HOME=/home/hf-space \
37
  PATH=/home/hf-space/.local/bin:${PATH} \
 
43
  GRADIO_THEME=huggingface \
44
  SYSTEM=spaces
45
 
46
+ # COPY --chown=1001 . ${HOME}/app
47
+ COPY . ${HOME}/app
48
 
49
  WORKDIR ${HOME}/app
50
 
 
56
 
57
  RUN uv pip install --no-cache-dir -r /home/hf-space/app/requirements.txt
58
 
59
+ # RUN chown -R hf-space:hf-space ${HOME}/app
60
 
61
+ #RUN ls -lha /home/hf-space/
62
+ #RUN ls -lha /home/hf-space/app/uv-pythons/cpython-3.13.2-linux-x86_64-gnu
 
63
 
64
  CMD ["uv", "run", "--no-cache", "--no-config", "app.py"]