Fedir Zadniprovskyi 2024-05-25
build: docker don't install dev deps
@d7d34e35f2b617a2a0c7c7ccc612f68c5334d444
Dockerfile.cpu
--- Dockerfile.cpu
+++ Dockerfile.cpu
@@ -8,7 +8,7 @@
 RUN pip install --no-cache-dir poetry==1.8.2
 WORKDIR /root/speaches
 COPY pyproject.toml poetry.lock ./
-RUN poetry install
+RUN poetry install --only main
 COPY ./speaches ./speaches
 ENTRYPOINT ["poetry", "run"]
 CMD ["uvicorn", "speaches.main:app"]
Dockerfile.cuda
--- Dockerfile.cuda
+++ Dockerfile.cuda
@@ -8,7 +8,7 @@
 RUN pip install --no-cache-dir poetry==1.8.2
 WORKDIR /root/speaches
 COPY pyproject.toml poetry.lock ./
-RUN poetry install
+RUN poetry install --only main
 COPY ./speaches ./speaches
 ENTRYPOINT ["poetry", "run"]
 CMD ["uvicorn", "speaches.main:app"]
pyproject.toml
--- pyproject.toml
+++ pyproject.toml
@@ -1,7 +1,7 @@
 [tool.poetry]
 package-mode = false
 
-[tool.poetry.dependencies]
+[tool.poetry.dependencies] # implicitly named main
 python = "^3.11"
 faster-whisper = "^1.0.2"
 pydantic = "^2.7.1"
Add a comment
List