Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
|
@@ -18,11 +18,13 @@ WORKDIR /code
|
|
| 18 |
RUN pip install --upgrade pip \
|
| 19 |
&& pip install poetry
|
| 20 |
|
| 21 |
-
#
|
|
|
|
| 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
|