api_caller_v2 / Dockerfile
grayphite's picture
Upload 4 files
ccee59f verified
raw
history blame contribute delete
677 Bytes
FROM python:3.12-slim
WORKDIR /usr/src/app
COPY . .
RUN apt-get update && apt-get install -y git
# Install dependencies from requirements.txt
RUN pip3 install --no-cache-dir -r requirements.txt
#RUN pip3 uninstall gradio_client
#RUN pip3 install https://gradio-pypi-previews.s3.amazonaws.com/4bc495cb68aec014cffffce16c14ee1ddaacf7a3/gradio-4.41.0-py3-none-any.whl
#RUN pip3 install "gradio-client @ git+https://github.com/gradio-app/gradio@4bc495cb68aec014cffffce16c14ee1ddaacf7a3#subdirectory=client/python"
# Expose the port for Gradio
EXPOSE 7860
# Set the Gradio server name
ENV GRADIO_SERVER_NAME="0.0.0.0"
# Run the application
CMD ["python", "-u", "caller_v2.py"]