oceanicdayi/sqlite_api
0
1# Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker2# you will also find guides on how best to write your Dockerfile3 4FROM python:3.95 6RUN useradd -m -u 1000 user7USER user8ENV PATH="/home/user/.local/bin:$PATH"9 10WORKDIR /app11 12# Copy requirements.txt and install Python dependencies13# No special SQLite packages needed for basic sqlite3,14# but if you use an ORM like SQLAlchemy, add it here.15COPY --chown=user ./requirements.txt requirements.txt16RUN pip install --no-cache-dir --upgrade -r requirements.txt17 18# Copy your application code19COPY --chown=user . /app20 21# Command to run your API22CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]