Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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
|
|
|
|
|
|
|
|
|
12 |
RUN --mount=type=secret,id=hf_token,mode=0444,required=true \
|
13 |
cat /run/secrets/hf_token > /test
|
14 |
|
15 |
-
|
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 |
|