Miroga64 commited on
Commit
1e3edbd
·
1 Parent(s): 98ea2ea

Added removed cache new

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -0
Dockerfile CHANGED
@@ -3,6 +3,17 @@ WORKDIR /code
3
  ENV DEBIAN_FRONTEND noninteractive
4
  ENV NUMBA_CACHE_DIR=/tmp/
5
  ENV HF_HOME="/root/cache/hf_cache_home"
 
 
 
 
 
 
 
 
 
 
 
6
  COPY requirements.txt requirements.txt
7
  RUN apt-get update -y && apt install python3-pip -y
8
  RUN pip install -r requirements.txt
 
3
  ENV DEBIAN_FRONTEND noninteractive
4
  ENV NUMBA_CACHE_DIR=/tmp/
5
  ENV HF_HOME="/root/cache/hf_cache_home"
6
+
7
+
8
+ USER user
9
+ ENV HOME=/home/user \
10
+ PATH=/home/user/.local/bin:$PATH
11
+
12
+ WORKDIR $HOME/app
13
+
14
+ COPY --chown=user . $HOME/app
15
+
16
+
17
  COPY requirements.txt requirements.txt
18
  RUN apt-get update -y && apt install python3-pip -y
19
  RUN pip install -r requirements.txt