HebrewTranscriber / Dockerfile
adiharel30's picture
Create Dockerfile
f5cc354 verified
raw
history blame contribute delete
529 Bytes
# Use the official Python image
FROM python:3.8
# Install ffmpeg (needed for pydub to convert audio formats)
RUN apt-get update && apt-get install -y ffmpeg
# Set the working directory
WORKDIR /app
# Copy the requirements file and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the FastAPI application
COPY app.py .
# Expose the port FastAPI will run on
EXPOSE 7860
# Run the FastAPI app with uvicorn
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]