Spaces:
Build error
Build error
mphycx
commited on
Commit
·
5a0a3c7
1
Parent(s):
e11282b
Fix permission
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -11,7 +11,9 @@ RUN apt-get update && apt-get install -y \
|
|
11 |
RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true \
|
12 |
git init && \
|
13 |
git remote add origin $(cat /run/secrets/OPENAI_API_KEY)
|
14 |
-
|
|
|
|
|
15 |
COPY requirements_pytorch.txt requirements_pytorch.txt
|
16 |
COPY requirements_api.txt requirements_api.txt
|
17 |
COPY requirements_app.txt requirements_app.txt
|
@@ -20,8 +22,6 @@ RUN pip3 install -r requirements_pytorch.txt
|
|
20 |
RUN pip3 install -r requirements_api.txt
|
21 |
RUN pip3 install -r requirements_app.txt
|
22 |
|
23 |
-
WORKDIR /app
|
24 |
-
|
25 |
COPY intfloat /app/intfloat
|
26 |
COPY app.py app.py
|
27 |
COPY api.py api.py
|
|
|
11 |
RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true \
|
12 |
git init && \
|
13 |
git remote add origin $(cat /run/secrets/OPENAI_API_KEY)
|
14 |
+
|
15 |
+
WORKDIR /app
|
16 |
+
|
17 |
COPY requirements_pytorch.txt requirements_pytorch.txt
|
18 |
COPY requirements_api.txt requirements_api.txt
|
19 |
COPY requirements_app.txt requirements_app.txt
|
|
|
22 |
RUN pip3 install -r requirements_api.txt
|
23 |
RUN pip3 install -r requirements_app.txt
|
24 |
|
|
|
|
|
25 |
COPY intfloat /app/intfloat
|
26 |
COPY app.py app.py
|
27 |
COPY api.py api.py
|