Spaces:
Running
Running
FROM python:3.10 | |
# Create working directory and give write permissions | |
WORKDIR /app | |
RUN mkdir -p /app/mongo_exports && chmod 777 /app/mongo_exports | |
# Copy files into container | |
COPY requirements.txt requirements.txt | |
RUN pip install --no-cache-dir -r requirements.txt | |
COPY . . | |
# Expose the Hugging Face default port | |
EXPOSE 7860 | |
# Run your FastAPI app | |
CMD ["python", "app.py"] | |