text-to-sql-backend / Dockerfile
mazoner11's picture
(Fix) Refactored the code and file structure , added Cors , made a dockerfile and requirements.txt for deployment.
b6045d5
Raw History Blame Contribute Delete
246 Bytes
FROM python:3.11-slim
WORKDIR /workspace
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY ./app ./app
COPY trained_weights.pt .
EXPOSE 8000
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]