# FROM python:3.11-slim | |
# WORKDIR /code | |
# RUN apt-get update && apt-get install -y git | |
# COPY ./backend/requirements.txt . | |
# RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
# COPY ./ml_models /code/sentiment_model | |
# WORKDIR /code/app | |
FROM python:3.11-slim | |
WORKDIR /code | |
RUN apt-get update && apt-get install -y git | |
COPY ./backend/requirements.txt . | |
RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
COPY ./ml_models /code/sentiment_model | |
WORKDIR /code/app | |
# This is the default command for our web server | |
CMD ["python", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "10000"] |