File size: 504 Bytes
9ac5368
6304a81
 
 
a2361bc
 
 
 
75d7fb5
a2361bc
 
 
42196dc
b2e7a27
da7535b
 
6304a81
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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"]