File size: 385 Bytes
1c0bd9a
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM python:3.12-slim

WORKDIR /app

COPY backend/ backend/
COPY model/ model/

RUN pip install --no-cache-dir \
    fastapi uvicorn[standard] google-cloud-bigquery \
    pandas joblib scikit-learn python-multipart

RUN python -c "import zipfile; zipfile.ZipFile('model/exportguard_model.zip').extractall('model/')"

CMD uvicorn backend.bq_main:app --host 0.0.0.0 --port ${PORT:-7860}