lyangas commited on
Commit
a2361bc
·
1 Parent(s): c17389e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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