gcharanteja
Implement SQLite server and FastAPI integration with updated Dockerfile and startup script
3d4271b Download Dockerfile from maxxcarl/sqlLIte: direct link, hf CLI and curl.
- Browser
- Download file 325 Bytes
-
https://huggingface.co/spaces/maxxcarl/sqlLIte/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/maxxcarl/sqlLIte/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/maxxcarl/sqlLIte/resolve/main/Dockerfile
325 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # Install requirements | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy all files | |
| COPY . . | |
| # Make start.sh executable | |
| RUN chmod +x start.sh | |
| EXPOSE 8000 | |
| EXPOSE 7860 | |
| # Run the startup script which handles both SQLite server and FastAPI | |
| CMD ["./start.sh"] |