Spaces:
Sleeping
Sleeping
File size: 641 Bytes
6c3a696 c4bbff7 6c3a696 c4bbff7 6c3a696 c4bbff7 6c3a696 c4bbff7 6c3a696 c4bbff7 6c3a696 c4bbff7 6c3a696 |
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 |
# 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"]
|