Skip to content
Snippets Groups Projects
Unverified Commit 2efefdad authored by Ahmet Oner's avatar Ahmet Oner Committed by GitHub
Browse files

Merge pull request #1 from ahmetoner/docker-init

Docker init
parents 364f7b94 0132a7b3
Branches
No related tags found
No related merge requests found
# Source
FROM python:3.9.9-slim
ENV POETRY_VENV=/opt/poetry-venv
ENV POETRY_VERSION=1.2.0
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get -qq update \
&& apt-get -qq install --no-install-recommends \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
RUN python3 -m venv $POETRY_VENV \
&& $POETRY_VENV/bin/pip install -U pip setuptools \
&& $POETRY_VENV/bin/pip install poetry==${POETRY_VERSION}
ENV PATH="${PATH}:${POETRY_VENV}/bin"
WORKDIR /app
COPY poetry.lock pyproject.toml ./
RUN poetry install
COPY . /app
CMD [ "poetry", "run", "whisper_asr"]
\ No newline at end of file
......@@ -13,7 +13,7 @@ whisper_asr = "whisper_asr.webservice:start"
[tool.poetry.dependencies]
python = "^3.8"
python = "^3.9"
unidecode = "^1.3.4"
fastapi = "^0.75.1"
uvicorn = { extras = ["standard"], version = "^0.18.2" }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment