speak-smart / Dockerfile
uzagi's picture
Update Dockerfile
78550a1 verified
raw
history blame contribute delete
389 Bytes
FROM python:3.12
USER root
RUN apt-get update && apt-get -y install espeak
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /app
COPY --chown=user ./requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
EXPOSE 8000
COPY --chown=user . /app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]