Arabic-ASR-Flask / Dockerfile
muzammil-eds's picture
Files added
fcafb91
raw
history blame
604 Bytes
# Use an official Python runtime as the base image
FROM python:3.12.3
LABEL authors="muzammil"
# Set Hugging Face cache directory to /tmp/.cache (which should be writable)
ENV HF_HOME="/tmp/.cache"
# Install FFmpeg
RUN apt-get update && apt-get install -y ffmpeg
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY --chown=user . $HOME/app
# Install any required Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose the port Flask will run on
EXPOSE 7860
# Command to run app
CMD ["python3", "app.py"]