File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ ENV PIP_EXTRA_INDEX_URL="https://download.pytorch.org/whl/cpu https://abetlen.gi
31
31
# avoid downloading unused cuda specific python packages
32
32
ENV CUDA_VISIBLE_DEVICES=""
33
33
RUN sed -i "s/dynamic = \\ [\" version\"\\ ]/version = \" $VERSION\" /" pyproject.toml && \
34
- pip install --no-cache-dir .[prod]
34
+ pip install --no-cache-dir -e .[prod]
35
35
36
36
# Build Web App
37
37
FROM node:20-alpine AS web-app
@@ -48,9 +48,10 @@ RUN yarn build
48
48
49
49
# Merge the Server and Web App into a Single Image
50
50
FROM base
51
- ENV PYTHONPATH=/app/src
51
+ ENV PYTHONPATH=/app/src:$PYTHONPATH
52
52
WORKDIR /app
53
53
COPY --from=server-deps /usr/local/lib/python3.10/dist-packages /usr/local/lib/python3.10/dist-packages
54
+ COPY --from=server-deps /usr/local/bin /usr/local/bin
54
55
COPY --from=web-app /app/src/interface/web/out ./src/khoj/interface/built
55
56
COPY . .
56
57
RUN cd src && python3 khoj/manage.py collectstatic --noinput
You can’t perform that action at this time.
0 commit comments