New web interface, move llm engine to separate process
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -49,7 +49,7 @@ RUN mkdir -p \
|
||||
/root/desktop \
|
||||
/root/venvs
|
||||
|
||||
# ITB tool setup
|
||||
# Tool ITB setup
|
||||
FROM base AS itb-env
|
||||
RUN python3 -m venv /root/venvs/itb --system-site-packages
|
||||
COPY ./tools/itb/setup.py /root/sia/tools/itb/setup.py
|
||||
@@ -58,15 +58,6 @@ RUN --mount=type=cache,target=/root/.cache/pip \
|
||||
/root/venvs/itb/bin/pip install -r *.egg-info/requires.txt
|
||||
RUN rm -rf *.egg-info/
|
||||
|
||||
# Train tool setup
|
||||
FROM base AS train-env
|
||||
RUN python3 -m venv /root/venvs/train --system-site-packages
|
||||
COPY ./tools/train/setup.py /root/sia/tools/train/setup.py
|
||||
RUN /root/venvs/train/bin/python /root/sia/tools/train/setup.py egg_info
|
||||
RUN --mount=type=cache,target=/root/.cache/pip \
|
||||
/root/venvs/train/bin/pip install -r *.egg-info/requires.txt
|
||||
RUN rm -rf *.egg-info/
|
||||
|
||||
# SIA core setup
|
||||
FROM base AS sia-env
|
||||
RUN python3 -m venv /root/venvs/sia --system-site-packages
|
||||
@@ -110,7 +101,6 @@ RUN npm run build
|
||||
FROM base
|
||||
|
||||
COPY --from=itb-env /root/venvs/itb /root/venvs/itb
|
||||
COPY --from=train-env /root/venvs/train /root/venvs/train
|
||||
COPY --from=sia-env /root/venvs/sia /root/venvs/sia
|
||||
COPY --from=notebook-env /root/venvs/notebook /root/venvs/notebook
|
||||
COPY --from=web-build /app/dist /root/static/
|
||||
|
||||
Reference in New Issue
Block a user