Spaces:
Runtime error
Runtime error
charreaubell
commited on
Commit
•
60e58b9
1
Parent(s):
5845b9e
Fixed dockerfile for correct run with bash
Browse files- Dockerfile +1 -2
Dockerfile
CHANGED
@@ -10,8 +10,7 @@ COPY ./requirements.txt /code/requirements.txt
|
|
10 |
RUN pip install --no-cache-dir --upgrade pip
|
11 |
|
12 |
RUN --mount=type=secret,id=PIPLOC,mode=0444,required=true \
|
13 |
-
|
14 |
-
pip install --no-cache-dir ${PIPLOC}
|
15 |
|
16 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
17 |
|
|
|
10 |
RUN pip install --no-cache-dir --upgrade pip
|
11 |
|
12 |
RUN --mount=type=secret,id=PIPLOC,mode=0444,required=true \
|
13 |
+
bash -c "PIPLOC=$(cat /run/secrets/PIPLOC); pip install --no-cache-dir \${PIPLOC}"
|
|
|
14 |
|
15 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
16 |
|