robertathing / Dockerfile
ganeshkonapalli's picture
Upload 4 files
4790396 verified
raw
history blame contribute delete
418 Bytes
FROM python:3.10-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN mkdir -p /app/saved_models \
&& chmod -R 777 /app/saved_models \
&& mkdir -p /app/predictions \
&& chmod -R 777 /app/predictions \
&& mkdir -p /app/tokenizer \
&& chmod -R 777 /app/tokenizer
EXPOSE 8000
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]