data-gen / Dockerfile
AdhyanshVerma's picture
Update Dockerfile
713ed61 verified
Raw
History Blame Contribute Delete
417 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install requirements
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy EVERYTHING (not just app.py)
COPY . .
# Create persistent data directory
RUN mkdir -p /data
# Expose port (Hugging Face Spaces default)
EXPOSE 7860
# Set environment
ENV PORT=7860
ENV DATA_DIR=/data
# Run
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]