File tree Expand file tree Collapse file tree 4 files changed +201
-35
lines changed
Expand file tree Collapse file tree 4 files changed +201
-35
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ ENV PATH="${PATH}:${POETRY_VENV}/bin"
1414
1515WORKDIR /app
1616
17- COPY . /app
17+ COPY . .
1818COPY --from=ffmpeg /usr/local/bin/ffmpeg /usr/local/bin/ffmpeg
1919COPY --from=swagger-ui /usr/share/nginx/html/swagger-ui.css swagger-ui-assets/swagger-ui.css
2020COPY --from=swagger-ui /usr/share/nginx/html/swagger-ui-bundle.js swagger-ui-assets/swagger-ui-bundle.js
2121
2222RUN poetry config virtualenvs.in-project true
23- RUN poetry install
23+ RUN poetry install --extras cpu
2424
2525EXPOSE 9000
2626
Original file line number Diff line number Diff line change @@ -30,19 +30,14 @@ ENV PATH="${PATH}:${POETRY_VENV}/bin"
3030
3131WORKDIR /app
3232
33- COPY poetry.lock pyproject.toml ./
34-
35- RUN poetry config virtualenvs.in-project true
36- RUN poetry install --no-root
37-
3833COPY . .
3934COPY --from=ffmpeg /usr/local/bin/ffmpeg /usr/local/bin/ffmpeg
4035COPY --from=swagger-ui /usr/share/nginx/html/swagger-ui.css swagger-ui-assets/swagger-ui.css
4136COPY --from=swagger-ui /usr/share/nginx/html/swagger-ui-bundle.js swagger-ui-assets/swagger-ui-bundle.js
4237
43- RUN poetry install
44- RUN $POETRY_VENV/bin/pip install torch==2.6.0+cu126 torchaudio==2.6.0+cu126 --index-url https://download.pytorch.org/whl/cu126
38+ RUN poetry config virtualenvs.in-project true
39+ RUN poetry install --extras gpu
4540
4641EXPOSE 9000
4742
48- CMD whisper-asr-webservice
43+ ENTRYPOINT [" whisper-asr-webservice"]
You can’t perform that action at this time.
0 commit comments