presidio commited on
Commit
426958c
·
verified ·
1 Parent(s): 1aade45

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -18,11 +18,13 @@ WORKDIR /code
18
  RUN pip install --upgrade pip \
19
  && pip install poetry
20
 
21
- # Copy the pyproject.toml and poetry.lock files
 
22
  COPY pyproject.toml poetry.lock /code/
 
 
 
23
 
24
- # Install project dependencies
25
- RUN poetry install --only main
26
 
27
  # Expose the necessary port
28
  EXPOSE 7860
 
18
  RUN pip install --upgrade pip \
19
  && pip install poetry
20
 
21
+ # Run poetry
22
+
23
  COPY pyproject.toml poetry.lock /code/
24
+ COPY index.md /code/
25
+
26
+ RUN pip install poetry && poetry install --no-root --only=main -E server
27
 
 
 
28
 
29
  # Expose the necessary port
30
  EXPOSE 7860