Skip to content
Snippets Groups Projects
Commit bee999ac authored by ahm72069's avatar ahm72069
Browse files

Create Dockerfile

parent 364f7b94
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment