Spaces:
Sleeping
Sleeping
Praneeth Yerrapragada commited on
Commit ·
849b2fa
1
Parent(s): f48a9aa
build: set virtualenvs.create false
Browse files- Dockerfile +3 -2
- pyproject.toml +1 -0
Dockerfile
CHANGED
|
@@ -8,12 +8,13 @@ ENV PYTHONPATH=/app
|
|
| 8 |
# Install any needed packages specified in requirements.txt
|
| 9 |
RUN --mount=type=cache,mode=0755,target=/root/.cache/pip pip install poetry
|
| 10 |
|
|
|
|
|
|
|
| 11 |
COPY ./pyproject.toml ./poetry.lock* /app/
|
| 12 |
RUN poetry install
|
| 13 |
-
# --no-root --no-cache --only main
|
| 14 |
|
| 15 |
# Download the 'stopwords' resource before running the app
|
| 16 |
-
|
| 17 |
# RUN chmod -R 775 /usr/local/lib/python3.11/site-packages/llama_index
|
| 18 |
|
| 19 |
# ====================================
|
|
|
|
| 8 |
# Install any needed packages specified in requirements.txt
|
| 9 |
RUN --mount=type=cache,mode=0755,target=/root/.cache/pip pip install poetry
|
| 10 |
|
| 11 |
+
RUN poetry config virtualenvs.create false
|
| 12 |
+
|
| 13 |
COPY ./pyproject.toml ./poetry.lock* /app/
|
| 14 |
RUN poetry install
|
|
|
|
| 15 |
|
| 16 |
# Download the 'stopwords' resource before running the app
|
| 17 |
+
RUN python -c "import nltk; nltk.download('stopwords')"
|
| 18 |
# RUN chmod -R 775 /usr/local/lib/python3.11/site-packages/llama_index
|
| 19 |
|
| 20 |
# ====================================
|
pyproject.toml
CHANGED
|
@@ -5,6 +5,7 @@ version = "0.1.0"
|
|
| 5 |
description = ""
|
| 6 |
authors = [ "Marcus Schiesser <mail@marcusschiesser.de>" ]
|
| 7 |
readme = "README.md"
|
|
|
|
| 8 |
|
| 9 |
[tool.poetry.scripts]
|
| 10 |
generate = "app.engine.generate:generate_datasource"
|
|
|
|
| 5 |
description = ""
|
| 6 |
authors = [ "Marcus Schiesser <mail@marcusschiesser.de>" ]
|
| 7 |
readme = "README.md"
|
| 8 |
+
package-mode = false
|
| 9 |
|
| 10 |
[tool.poetry.scripts]
|
| 11 |
generate = "app.engine.generate:generate_datasource"
|