Fix dockerfile for xml schema validator
This commit is contained in:
15
Dockerfile
15
Dockerfile
@@ -35,7 +35,8 @@ COPY ./scripts/setup_binaries.py /root/sia/scripts/
|
||||
COPY ./tools/itb/setup.py /root/sia/tools/itb/setup.py
|
||||
RUN python3 /root/sia/scripts/setup_binaries.py /root/sia/tools/itb/setup.py
|
||||
RUN python3 -m venv /root/venvs/itb
|
||||
RUN /root/venvs/itb/bin/pip install -e /root/sia/tools/itb/
|
||||
RUN --mount=type=cache,target=/root/.cache/pip \
|
||||
/root/venvs/itb/bin/pip install -e /root/sia/tools/itb/
|
||||
|
||||
# Train tool setup
|
||||
FROM base AS train-env
|
||||
@@ -43,15 +44,23 @@ COPY ./scripts/setup_binaries.py /root/sia/scripts/
|
||||
COPY ./tools/train/setup.py /root/sia/tools/train/setup.py
|
||||
RUN python3 /root/sia/scripts/setup_binaries.py /root/sia/tools/train/setup.py
|
||||
RUN python3 -m venv /root/venvs/train
|
||||
RUN /root/venvs/train/bin/pip install -e /root/sia/tools/train/
|
||||
RUN --mount=type=cache,target=/root/.cache/pip \
|
||||
/root/venvs/train/bin/pip install -e /root/sia/tools/train/
|
||||
|
||||
# SIA core setup
|
||||
FROM base AS sia-env
|
||||
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
|
||||
ENV PATH="/root/.cargo/bin:${PATH}"
|
||||
|
||||
COPY action_schema.xsd /root/sia/action_schema.xsd
|
||||
|
||||
COPY ./scripts/setup_binaries.py /root/sia/scripts/
|
||||
COPY ./setup.py /root/sia/setup.py
|
||||
COPY ./lib /root/sia/lib
|
||||
RUN python3 /root/sia/scripts/setup_binaries.py /root/sia/setup.py
|
||||
RUN python3 -m venv /root/venvs/sia
|
||||
RUN /root/venvs/sia/bin/pip install -e /root/sia/
|
||||
RUN --mount=type=cache,target=/root/.cache/pip \
|
||||
/root/venvs/sia/bin/pip install -e /root/sia/
|
||||
|
||||
# Web frontend build
|
||||
FROM node:20-alpine AS web-build
|
||||
|
||||
Reference in New Issue
Block a user