Spaces:
Sleeping
Sleeping
FROM python:3.12-slim | |
# Install sqlite-web | |
RUN pip3 install psycopg2-binary | |
# Set working directory | |
WORKDIR /app | |
# Install build dependencies | |
RUN apt-get update && apt-get install -y --no-install-recommends \ | |
build-essential \ | |
&& rm -rf /var/lib/apt/lists/* | |
# Copy requirements and install dependencies | |
COPY requirements_main.txt requirements.txt | |
RUN pip install -r requirements.txt | |
# Copy app source code | |
COPY utils_semantic_search.py . | |
COPY main_fast.py . | |
COPY models_semantic_search.py . | |
COPY settings.py . | |
COPY public /app/static/public | |
#COPY index.html /app/static/index.html | |
# Expose port 7860 | |
EXPOSE 7860 | |
# Command to run FastAPI app with uvicorn | |
CMD ["uvicorn", "main_fast:app", "--host", "0.0.0.0", "--port", "7860"] | |