SafarX / Dockerfile
bharatverse11's picture
Add SafarX AI Travel Companion backend with Docker support
e737a76
raw
history blame contribute delete
437 Bytes
# Use the official Python string image
FROM python:3.10-slim
# Set the working directory
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code
COPY . .
# Expose port (Hugging Face Spaces uses 7860 by default for Docker spaces)
EXPOSE 7860
# Command to run the FastApi application
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]