Skip to content

Commit

Permalink
fix: docker
Browse files Browse the repository at this point in the history
  • Loading branch information
leoguillaume committed Oct 26, 2024
1 parent a00870b commit 5bbfd41
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ RUN apt-get update -y && \

RUN groupadd --gid 1100 whisper
RUN useradd --home /home/whisper --gid 1100 --uid 1100 whisper

USER whisper
WORKDIR /home/whisper

ENV PATH="/home/whisper/.local/bin:${PATH}"
ENV PYTHONPATH="/home/whisper/app:${PYTHONPATH}"

WORKDIR /home/whisper
ADD ./pyproject.toml ./pyproject.toml
RUN pip install .
RUN pip install --upgrade pip && pip install .
ADD ./app /home/whisper/app
ENV PYTHONPATH="/home/whisper/app:${PYTHONPATH}"

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "whisper-openai-api"
version = "1.0.0"
description = "Whisper OpenAI API"
requires-python = ">=3.12"
requires-python = ">=3.10"
license = { text = "MIT" }
dependencies = [
"transformers==4.46.0",
Expand Down

0 comments on commit 5bbfd41

Please sign in to comment.