News.ai / Dockerfile
PRANJAL KAR
rr
cc205fe
raw
history blame contribute delete
779 Bytes
# Use an official Python runtime as the base image
FROM python:3.8-slim
ENV HF_TOKEN="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"
ENV token="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"
# Set the working directory in the container
WORKDIR /app
# Copy the local code and requirements.txt to the container
COPY . /app/
# Install necessary Python packages from requirements.txt
RUN pip install --upgrade pip && \
pip install -r requirements.txt
# Make port 7860 available to the world outside this container (default port for Gradio)
EXPOSE 7860
# Define an environment variable (Optional)
# This can be used to set Gradio server name, port, etc.
# ENV GRADIO_SERVER_NAME 0.0.0.0
# ENV GRADIO_SERVER_PORT 7860
# Run your script when the container launches
CMD ["python", "test.py"]