Spaces:
Sleeping
Sleeping
| # Use the Python 3.11 base image | |
| FROM python:3.11 | |
| # Set the working directory | |
| WORKDIR /usr/src/app | |
| # Copy the application code into the container | |
| COPY . . | |
| # Install the Python dependencies from requirements.txt | |
| RUN pip install -r requirements.txt | |
| # Install huggingface-cli | |
| RUN pip install huggingface-cli | |
| # Expose the port on which your Gradio app runs | |
| EXPOSE 7860 | |
| # Set an environment variable for the Gradio server name | |
| ENV GRADIO_SERVER_NAME="0.0.0.0" | |
| # Define an entrypoint script to run both commands | |
| COPY entrypoint.sh /usr/src/app/entrypoint.sh | |
| RUN chmod +x /usr/src/app/entrypoint.sh | |
| ENTRYPOINT ["/usr/src/app/entrypoint.sh"] | |