File size: 751 Bytes
d219831 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
FROM python:3.9-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Set the working directory in the container
WORKDIR /app
# Copy the requirements file and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy all application files into the container
COPY . .
# Expose the ports for both FastAPI and Gradio
EXPOSE 8000
EXPOSE 7860
# Command to run both FastAPI and Gradio servers
<<<<<<< Updated upstream
CMD ["python", "gradio_app.py","&&","uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
=======
CMD ["python", "gradio_app.py","&&","uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
>>>>>>> Stashed changes
|