AIIA / Dockerfile
RosiYo's picture
feat[bert]: FastAPI interface
4930e66
raw
history blame contribute delete
558 Bytes
FROM python:3.10.8-slim
LABEL description="Sentiment classifier of tweets service"
LABEL maintainer="RosiSoyYo"
LABEL version="SNAPSHOT"
RUN apt-get update && \
apt-get -y upgrade && \
apt-get -y autoremove && \
apt-get install -y
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
COPY ./ml-service /app
WORKDIR /app
RUN mkdir /app/.cache
RUN chmod -R 777 /app/.cache
RUN pip install --no-cache-dir --upgrade -r requirements.txt
ENV TRANSFORMERS_CACHE='/app/.cache'
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]