15 lines
414 B
Docker
15 lines
414 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /srv/faerro-kb
|
|
COPY requirements.txt .
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends ffmpeg \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& pip install --no-cache-dir -r requirements.txt
|
|
COPY app ./app
|
|
COPY frontend ./frontend
|
|
COPY ["audio test.wav", "./audio test.wav"]
|
|
|
|
ENV DATA_DIR=/data
|
|
EXPOSE 80
|
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"] |