evBackend / Dockerfile
Jofthomas's picture
Update Dockerfile
9d69895
raw
history blame
712 Bytes
FROM python:3.10.9
# Install ffmpeg and any other required packages
RUN apt-get update && apt-get install -y ffmpeg
# Set the working directory
WORKDIR /app
# Copy all files into the container
COPY . .
# Install Python dependencies
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# Set permissions for unidic
RUN mkdir -p /usr/local/lib/python3.10/site-packages/unidic \
&& chmod -R 777 /usr/local/lib/python3.10/site-packages/unidic
# Resolve numba caching issue by setting the NUMBA_CACHE_DIR environment variable
ENV NUMBA_CACHE_DIR=/tmp/numba_cache
RUN mkdir -p /tmp/numba_cache \
&& chmod -R 777 /tmp/numba_cache
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]