Spaces:
Runtime error
Runtime error
Commit
·
c084fb6
1
Parent(s):
1fd4d12
spaces secret
Browse files- .gitignore +3 -1
- Dockerfile +6 -2
.gitignore
CHANGED
|
@@ -26,4 +26,6 @@ dist-ssr
|
|
| 26 |
.env
|
| 27 |
tmp
|
| 28 |
|
| 29 |
-
qwen3-final-results.json
|
|
|
|
|
|
|
|
|
| 26 |
.env
|
| 27 |
tmp
|
| 28 |
|
| 29 |
+
qwen3-final-results.json
|
| 30 |
+
|
| 31 |
+
__pycache__
|
Dockerfile
CHANGED
|
@@ -34,6 +34,11 @@ RUN pip install -r requirements.txt
|
|
| 34 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 35 |
COPY --chown=user . $HOME/app
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
RUN yarn install
|
| 39 |
RUN yarn build
|
|
@@ -42,9 +47,8 @@ RUN curl -L https://huggingface.co/HuggingFaceTB/simplewiki-pruned-text-350k/res
|
|
| 42 |
|
| 43 |
ENV WIKISPEEDIA_DB_PATH=/home/user/app/wikihop.db
|
| 44 |
|
| 45 |
-
ENV VITE_ENV=production
|
| 46 |
|
| 47 |
-
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]
|
| 48 |
|
| 49 |
|
| 50 |
# # Download a checkpoint
|
|
|
|
| 34 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 35 |
COPY --chown=user . $HOME/app
|
| 36 |
|
| 37 |
+
ENV VITE_ENV=production
|
| 38 |
+
|
| 39 |
+
RUN --mount=type=secret,id=HUGGINGFACE_CLIENT_SECRET,mode=0444,required=true \
|
| 40 |
+
echo "HUGGINGFACE_CLIENT_SECRET=$(cat /run/secrets/HUGGINGFACE_CLIENT_SECRET)" >> .env
|
| 41 |
+
echo "VITE_ENV=production" >> .env
|
| 42 |
|
| 43 |
RUN yarn install
|
| 44 |
RUN yarn build
|
|
|
|
| 47 |
|
| 48 |
ENV WIKISPEEDIA_DB_PATH=/home/user/app/wikihop.db
|
| 49 |
|
|
|
|
| 50 |
|
| 51 |
+
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860", "--env-file", ".env"]
|
| 52 |
|
| 53 |
|
| 54 |
# # Download a checkpoint
|