Update Dockerfile
Browse files- Dockerfile +7 -2
Dockerfile
CHANGED
@@ -2,8 +2,13 @@ FROM python:3.8
|
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
5 |
-
COPY ./requirements.txt /code/requirements.txt
|
6 |
-
RUN pip install --upgrade -r /code/requirements.txt
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
COPY ./embedder ./embedder
|
9 |
COPY ./classifiers ./classifiers
|
|
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
5 |
+
# COPY ./requirements.txt /code/requirements.txt
|
6 |
+
# RUN pip install --upgrade -r /code/requirements.txt
|
7 |
+
|
8 |
+
COPY pyproject.toml poetry.lock ./
|
9 |
+
RUN pip install poetry==1.6.0
|
10 |
+
RUN poetry config virtualenvs.create false && \
|
11 |
+
poetry install --no-root --no-cache
|
12 |
|
13 |
COPY ./embedder ./embedder
|
14 |
COPY ./classifiers ./classifiers
|