CompositePropCalc / Dockerfile
tengfeiluo's picture
Upload folder using huggingface_hub
01a0b26 verified
raw
history blame contribute delete
444 Bytes
FROM python:3.12-slim
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application
COPY compositecalc/ compositecalc/
COPY pyproject.toml .
COPY app.py .
# Install the package
RUN pip install --no-cache-dir -e .
# HF Spaces expects port 7860
EXPOSE 7860
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.headless=true"]