

build: docker don't install dev deps
@d7d34e35f2b617a2a0c7c7ccc612f68c5334d444
--- Dockerfile.cpu
+++ Dockerfile.cpu
... | ... | @@ -8,7 +8,7 @@ |
8 | 8 |
RUN pip install --no-cache-dir poetry==1.8.2 |
9 | 9 |
WORKDIR /root/speaches |
10 | 10 |
COPY pyproject.toml poetry.lock ./ |
11 |
-RUN poetry install |
|
11 |
+RUN poetry install --only main |
|
12 | 12 |
COPY ./speaches ./speaches |
13 | 13 |
ENTRYPOINT ["poetry", "run"] |
14 | 14 |
CMD ["uvicorn", "speaches.main:app"] |
--- Dockerfile.cuda
+++ Dockerfile.cuda
... | ... | @@ -8,7 +8,7 @@ |
8 | 8 |
RUN pip install --no-cache-dir poetry==1.8.2 |
9 | 9 |
WORKDIR /root/speaches |
10 | 10 |
COPY pyproject.toml poetry.lock ./ |
11 |
-RUN poetry install |
|
11 |
+RUN poetry install --only main |
|
12 | 12 |
COPY ./speaches ./speaches |
13 | 13 |
ENTRYPOINT ["poetry", "run"] |
14 | 14 |
CMD ["uvicorn", "speaches.main:app"] |
--- pyproject.toml
+++ pyproject.toml
... | ... | @@ -1,7 +1,7 @@ |
1 | 1 |
[tool.poetry] |
2 | 2 |
package-mode = false |
3 | 3 |
|
4 |
-[tool.poetry.dependencies] |
|
4 |
+[tool.poetry.dependencies] # implicitly named main |
|
5 | 5 |
python = "^3.11" |
6 | 6 |
faster-whisper = "^1.0.2" |
7 | 7 |
pydantic = "^2.7.1" |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?