lango_backend / Dockerfile
aliSaac510's picture
Update Dockerfile
249a7f1 verified
Raw
History Blame Contribute Delete
575 Bytes
# Use the official Python image
FROM python:3.11-slim
# Install ffmpeg and clean up
RUN apt-get update && \
apt-get install -y ffmpeg && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Set the working directory
WORKDIR /code
# Copy the requirements file and install dependencies
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy the application code
COPY . /code
# Expose the port and run the application
EXPOSE 7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]