FROM python:3.10 WORKDIR /code # COPY ./requirements.txt /code/requirements.txt # RUN pip install --upgrade -r /code/requirements.txt COPY pyproject.toml poetry.lock ./ RUN pip install --upgrade pip RUN pip install poetry==1.6.0 RUN poetry config virtualenvs.create false && \ poetry install --no-root --no-cache COPY ./helpers ./helpers COPY ./embedder ./embedder COPY ./classifiers ./classifiers COPY ./required_classes.py ./required_classes.py COPY ./app.py ./app.py CMD ["python", "app.py"]