Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
whisper-asr-webservice
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Schwertgen
whisper-asr-webservice
Commits
bb8960ce
Commit
bb8960ce
authored
2 weeks ago
by
Subliminal Guy
Browse files
Options
Downloads
Patches
Plain Diff
Add dedicated Dockerfiles
parent
8bcfbf2f
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile.cpu
+30
-0
30 additions, 0 deletions
Dockerfile.cpu
Dockerfile.gpu
+4
-0
4 additions, 0 deletions
Dockerfile.gpu
with
34 additions
and
0 deletions
Dockerfile.cpu
0 → 100644
+
30
−
0
View file @
bb8960ce
FROM onerahmet/ffmpeg:n7.1 AS ffmpeg
FROM swaggerapi/swagger-ui:v5.9.1 AS swagger-ui
FROM python:3.10-bookworm
ENV POETRY_VENV=/app/.venv
RUN python3 -m venv $POETRY_VENV \
&& $POETRY_VENV/bin/pip install -U pip setuptools \
&& $POETRY_VENV/bin/pip install poetry==2.1.1
ENV PATH="${PATH}:${POETRY_VENV}/bin"
WORKDIR /app
RUN mkdir ./files
RUN mkdir -p ./data/whisper
COPY . /app
COPY --from=ffmpeg /usr/local/bin/ffmpeg /usr/local/bin/ffmpeg
COPY --from=swagger-ui /usr/share/nginx/html/swagger-ui.css swagger-ui-assets/swagger-ui.css
COPY --from=swagger-ui /usr/share/nginx/html/swagger-ui-bundle.js swagger-ui-assets/swagger-ui-bundle.js
RUN poetry config virtualenvs.in-project true
RUN poetry install
EXPOSE 9000
ENTRYPOINT ["whisper-asr-webservice"]
This diff is collapsed.
Click to expand it.
Dockerfile.gpu
+
4
−
0
View file @
bb8960ce
...
@@ -30,6 +30,10 @@ ENV PATH="${PATH}:${POETRY_VENV}/bin"
...
@@ -30,6 +30,10 @@ ENV PATH="${PATH}:${POETRY_VENV}/bin"
WORKDIR /app
WORKDIR /app
RUN mkdir ./files
RUN mkdir ./data
RUN mkdir -p ./data/whisper
COPY poetry.lock pyproject.toml ./
COPY poetry.lock pyproject.toml ./
RUN poetry config virtualenvs.in-project true
RUN poetry config virtualenvs.in-project true
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment