diff options
author | Evan Zachary <ezach2281@gmail.com> | 2024-02-11 07:51:22 -0700 |
---|---|---|
committer | Evan Zachary <ezach2281@gmail.com> | 2024-02-11 07:51:22 -0700 |
commit | a4002ba58668d3dcad35552f7bd0bb39ab4fa6be (patch) | |
tree | 64b89512886227c990ae4825765c44c30515e50b /telephony_app/Dockerfile | |
parent | 2b12171b65390ab03ef99db3631bbe3a83a736bf (diff) |
ppppp
Diffstat (limited to 'telephony_app/Dockerfile')
-rw-r--r-- | telephony_app/Dockerfile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/telephony_app/Dockerfile b/telephony_app/Dockerfile new file mode 100644 index 0000000..d96b3f3 --- /dev/null +++ b/telephony_app/Dockerfile @@ -0,0 +1,19 @@ +FROM python:3.9-bullseye + +# get portaudio and ffmpeg +RUN apt-get update \ + && apt-get install libportaudio2 libportaudiocpp0 portaudio19-dev libasound-dev libsndfile1-dev -y +RUN apt-get -y update +RUN apt-get -y upgrade +RUN apt-get install -y ffmpeg + +WORKDIR /code +COPY ./pyproject.toml /code/pyproject.toml +COPY ./poetry.lock /code/poetry.lock +RUN pip install --no-cache-dir --upgrade poetry +RUN poetry config virtualenvs.create false +RUN poetry install --no-dev --no-interaction --no-ansi +COPY main.py /code/main.py +COPY speller_agent.py /code/speller_agent.py + +CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "3000"]
\ No newline at end of file |