Update Dockerfile for correct directory structure
Browse files- Dockerfile +4 -7
Dockerfile
CHANGED
|
@@ -42,14 +42,11 @@ COPY api/ /app/api/
|
|
| 42 |
# Install Python dependencies with memory optimizations
|
| 43 |
WORKDIR /app/api
|
| 44 |
ENV POETRY_VIRTUALENVS_CREATE=false
|
|
|
|
|
|
|
|
|
|
| 45 |
RUN pip install --no-cache-dir poetry && \
|
| 46 |
-
|
| 47 |
-
poetry install --only main --no-interaction --no-ansi \
|
| 48 |
-
--no-root \
|
| 49 |
-
--with runtime-dependencies && \
|
| 50 |
-
poetry install --only main --no-interaction --no-ansi \
|
| 51 |
-
--no-root \
|
| 52 |
-
--with core-dependencies && \
|
| 53 |
poetry install --only main --no-interaction --no-ansi
|
| 54 |
|
| 55 |
# Copy built web files from builder stage
|
|
|
|
| 42 |
# Install Python dependencies with memory optimizations
|
| 43 |
WORKDIR /app/api
|
| 44 |
ENV POETRY_VIRTUALENVS_CREATE=false
|
| 45 |
+
ENV POETRY_NO_INTERACTION=1
|
| 46 |
+
|
| 47 |
+
# Install dependencies in chunks to avoid memory issues
|
| 48 |
RUN pip install --no-cache-dir poetry && \
|
| 49 |
+
poetry config installer.max-workers 4 && \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
poetry install --only main --no-interaction --no-ansi
|
| 51 |
|
| 52 |
# Copy built web files from builder stage
|