File size: 287 Bytes
a5fed35
 
 
 
 
 
 
f42ec01
 
a5fed35
f42ec01
a5fed35
 
f42ec01
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM python:3.10-slim

WORKDIR /comma-fixer

COPY requirements.txt .
RUN pip install -r requirements.txt

COPY src/baseline.py src/baseline.py
RUN python src/baseline.py  # This pre-downloads models and tokenizers

COPY . .

EXPOSE 8000
CMD uvicorn "app:app" --port 8000 --host "0.0.0.0"