Spaces:
Sleeping
Sleeping
File size: 589 Bytes
e6c7423 6d25b81 e6c7423 553ab5e e6c7423 |
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 29 |
FROM python:3.10
WORKDIR /antibody-database
# Create cache directories with full permissions
RUN mkdir -p /.cache/huggingface && \
chmod -R 777 /.cache
# Copy requirements first for better caching
COPY requirements.txt .
# Install dependencies with upgrade flag
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir --upgrade -r requirements.txt
# Copy application files
COPY . .
# Expose Gradio port
EXPOSE 7860
# Set environment variables
ENV GRADIO_SERVER_NAME="0.0.0.0"
ENV GRADIO_SERVER_PORT=7860
# Run the application
CMD ["gradio", "app.py"]
|