nikhilkomakula commited on
Commit
c27e33a
·
1 Parent(s): 37318af

Dockerfile Update v1.2

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -7,7 +7,8 @@ WORKDIR /code
7
  COPY requirements.txt ./
8
 
9
  # Upgrade pip and install dependencies
10
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
11
 
12
  # install git & git-lfs
13
  RUN apt-get update && \
@@ -16,8 +17,8 @@ RUN apt-get update && \
16
  apt-get install -y git-lfs
17
 
18
  # Expose the secret SECRET_EXAMPLE at buildtime and use its value to clone the repo
19
- RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
20
- git clone --depth 1 https://nikhilkomakula:$(cat /run/secrets/HF_TOKEN)@huggingface.co/spaces/nikhilkomakula/llm-rag-op-chatbot1 /code/llm-rag-op-chatbot1
21
 
22
  # Set up a new user named "user" with user ID 1000
23
  RUN useradd -m -u 1000 user
 
7
  COPY requirements.txt ./
8
 
9
  # Upgrade pip and install dependencies
10
+ RUN pip install --upgrade pip && \
11
+ pip install --no-cache-dir -r requirements.txt
12
 
13
  # install git & git-lfs
14
  RUN apt-get update && \
 
17
  apt-get install -y git-lfs
18
 
19
  # Expose the secret SECRET_EXAMPLE at buildtime and use its value to clone the repo
20
+ RUN --mount=type=secret,id=HUGGINGFACEHUB_API_TOKEN,mode=0444,required=true \
21
+ git clone --depth 1 https://nikhilkomakula:$(cat /run/secrets/HUGGINGFACEHUB_API_TOKEN)@huggingface.co/spaces/nikhilkomakula/llm-rag-op-chatbot1 /code/llm-rag-op-chatbot1
22
 
23
  # Set up a new user named "user" with user ID 1000
24
  RUN useradd -m -u 1000 user