Spaces:
Sleeping
Sleeping
File size: 659 Bytes
b5e7d77 77f3eaf 748e8a4 b5e7d77 564556f b5e7d77 564556f e6b0ff7 b5e7d77 564556f cd33363 b5e7d77 f51ea2c cd33363 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# Use Python 3.12 as the base image
FROM python:3.12
# Set working directory
WORKDIR /code
# Copy requirements and install dependencies
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy application files
COPY . /code/app
# Hugging Face Spaces does NOT support --mount=type=secret.
# Instead, access HF_TOKEN via environment variables at runtime.
CMD huggingface-cli login --token "$HF_TOKEN" --add-to-git-credential && \
streamlit run app.py \
--server.headless true \
--server.enableCORS false \
--server.enableXsrfProtection false \
--server.fileWatcherType none |