ProvaObjetiva / Dockerfile
healthtechbrasil's picture
app update
cc51976
raw
history blame contribute delete
451 Bytes
FROM python:3.9-slim
WORKDIR /app
COPY . /app
# Atualiza e instala dependências do sistema
RUN apt-get update && apt-get install -y build-essential libssl-dev && rm -rf /var/lib/apt/lists/*
# Instala dependências Python
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir transformers accelerate sentencepiece torch
# Define o comando de execução
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]