Damien Benveniste commited on
Commit
2121260
·
1 Parent(s): 2ecf368

changed docker

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -8,14 +8,14 @@ WORKDIR /app
8
 
9
  # Expose the secret SECRET_EXAMPLE at buildtime and use its value as git remote URL
10
 
 
 
 
11
  RUN --mount=type=secret,id=PINECONE_API_KEY,mode=0444,required=true \
12
  cat /run/secrets/PINECONE_API_KEY > /test
13
 
14
  RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true \
15
  cat /run/secrets/OPENAI_API_KEY > /test
16
 
17
- COPY --chown=user ./requirements.txt requirements.txt
18
- RUN pip install --no-cache-dir --upgrade -r requirements.txt
19
-
20
  COPY --chown=user . /app
21
  CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
8
 
9
  # Expose the secret SECRET_EXAMPLE at buildtime and use its value as git remote URL
10
 
11
+ COPY --chown=user ./requirements.txt requirements.txt
12
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
13
+
14
  RUN --mount=type=secret,id=PINECONE_API_KEY,mode=0444,required=true \
15
  cat /run/secrets/PINECONE_API_KEY > /test
16
 
17
  RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true \
18
  cat /run/secrets/OPENAI_API_KEY > /test
19
 
 
 
 
20
  COPY --chown=user . /app
21
  CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]