Sebayhi_new / Dockerfile
MM58-crypto
wooo another commit
172d90f
Raw
History Blame Contribute Delete
619 Bytes
FROM python:3.11-slim
WORKDIR /sebyahi
RUN apt-get update && apt-get install -y git ca-certificates libssl-dev && rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install pymongo
RUN pip install certifi
RUN camel_data -i defaults
RUN sed -i 's/torch.load(\(.*\))/torch.load(\1, weights_only=False)/g' \
/usr/local/lib/python3.11/site-packages/supar/parser.py
COPY patch_supar.py .
RUN python patch_supar.py
COPY . .
RUN python camel_parser/download_models.py
EXPOSE 7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]