akhil20187 commited on
Commit
a6ecb29
·
verified ·
1 Parent(s): 3ac7b68

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -4
Dockerfile CHANGED
@@ -8,13 +8,15 @@ COPY ./requirements.txt /code/requirements.txt
8
 
9
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
10
 
11
- # Get secret hf_token and clone it as repo at buildtime
 
 
 
 
12
  RUN --mount=type=secret,id=hf_token,mode=0444,required=true \
13
  cat /run/secrets/hf_token > /test
14
 
15
- # Get secret REPLICATE_API_TOKEN and clone it as repo at buildtime
16
- RUN --mount=type=secret,id=REPLICATE_API_TOKEN,mode=0444,required=true \
17
- cat /run/secrets/REPLICATE_API_TOKEN > /test
18
 
19
  RUN useradd -m -u 1000 user
20
 
 
8
 
9
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
10
 
11
+ # Get secret REPLICATE_API_TOKEN and output it to /test at buildtime
12
+ RUN --mount=type=secret,id=REPLICATE_API_TOKEN,mode=0444,required=true \
13
+ cat /run/secrets/REPLICATE_API_TOKEN > /test
14
+
15
+ # Get secret hf_token and output it to /test at buildtime
16
  RUN --mount=type=secret,id=hf_token,mode=0444,required=true \
17
  cat /run/secrets/hf_token > /test
18
 
19
+
 
 
20
 
21
  RUN useradd -m -u 1000 user
22