abidlabs HF staff commited on
Commit
f2b6bb6
1 Parent(s): a1a3336

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -5
Dockerfile CHANGED
@@ -5,10 +5,6 @@ RUN pip install --no-cache-dir pip==22.3.1 && \
5
  datasets \
6
  "huggingface-hub>=0.19" "hf-transfer>=0.1.4" "protobuf<4" "click<8.1" "pydantic~=1.0"
7
 
8
- COPY --chown=user ./requirements.txt requirements.txt
9
- RUN pip install --no-cache-dir --upgrade -r requirements.txt
10
-
11
-
12
  ENV PYTHONPATH=$HOME/app \
13
  PYTHONUNBUFFERED=1 \
14
  HF_HUB_ENABLE_HF_TRANSFER=1 \
@@ -23,6 +19,8 @@ ENV PYTHONPATH=$HOME/app \
23
  RUN useradd -m -u 1000 user
24
  WORKDIR /app
25
 
26
- COPY --chown=user . /app
 
27
 
 
28
  CMD ["python", "app.py"]
 
5
  datasets \
6
  "huggingface-hub>=0.19" "hf-transfer>=0.1.4" "protobuf<4" "click<8.1" "pydantic~=1.0"
7
 
 
 
 
 
8
  ENV PYTHONPATH=$HOME/app \
9
  PYTHONUNBUFFERED=1 \
10
  HF_HUB_ENABLE_HF_TRANSFER=1 \
 
19
  RUN useradd -m -u 1000 user
20
  WORKDIR /app
21
 
22
+ COPY --chown=user ./requirements.txt requirements.txt
23
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
24
 
25
+ COPY --chown=user . /app
26
  CMD ["python", "app.py"]