pengdaqian commited on
Commit
d32b88e
1 Parent(s): 27e0bdf
Files changed (1) hide show
  1. Dockerfile +1 -6
Dockerfile CHANGED
@@ -1,21 +1,16 @@
1
  FROM python:3.8
2
 
3
- WORKDIR /app
4
-
5
  COPY requirements.txt requirements.txt
6
  RUN pip3 install -r requirements.txt
7
 
8
-
9
  RUN useradd -m -u 1000 user
10
  USER user
11
  ENV HOME=/home/user \
12
  PATH=/home/user/.local/bin:$PATH
13
- HF_HOME=/app/.cache/huggingface
14
 
15
  WORKDIR $HOME/app
16
 
17
  COPY --chown=user . $HOME/app
18
 
19
- COPY . .
20
-
21
  CMD ["sh", "-c", "python3 main.py"]
 
1
  FROM python:3.8
2
 
 
 
3
  COPY requirements.txt requirements.txt
4
  RUN pip3 install -r requirements.txt
5
 
 
6
  RUN useradd -m -u 1000 user
7
  USER user
8
  ENV HOME=/home/user \
9
  PATH=/home/user/.local/bin:$PATH
10
+ HF_HOME=/home/app/.cache/huggingface
11
 
12
  WORKDIR $HOME/app
13
 
14
  COPY --chown=user . $HOME/app
15
 
 
 
16
  CMD ["sh", "-c", "python3 main.py"]