Added rust dependency to docker build
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -10,13 +10,18 @@ RUN apt-get update && \
|
|||||||
gnupg \
|
gnupg \
|
||||||
vim \
|
vim \
|
||||||
curl
|
curl
|
||||||
|
|
||||||
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
|
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
|
||||||
RUN echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list
|
RUN echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
google-chrome-stable
|
google-chrome-stable
|
||||||
|
|
||||||
RUN rm -rf /var/lib/apt/lists/*
|
RUN rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
|
||||||
|
ENV PATH="/root/.cargo/bin:${PATH}"
|
||||||
|
|
||||||
# Create directory structure
|
# Create directory structure
|
||||||
RUN mkdir -p \
|
RUN mkdir -p \
|
||||||
/root/sia \
|
/root/sia \
|
||||||
@@ -49,16 +54,15 @@ RUN --mount=type=cache,target=/root/.cache/pip \
|
|||||||
|
|
||||||
# SIA core setup
|
# SIA core setup
|
||||||
FROM base AS sia-env
|
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 ./scripts/setup_binaries.py /root/sia/scripts/
|
||||||
COPY ./setup.py /root/sia/setup.py
|
COPY ./setup.py /root/sia/setup.py
|
||||||
COPY ./lib /root/sia/lib
|
COPY ./lib /root/sia/lib
|
||||||
RUN python3 /root/sia/scripts/setup_binaries.py /root/sia/setup.py
|
RUN python3 /root/sia/scripts/setup_binaries.py /root/sia/setup.py
|
||||||
RUN python3 -m venv /root/venvs/sia
|
RUN python3 -m venv /root/venvs/sia
|
||||||
|
|
||||||
|
COPY action_schema.xsd /root/sia/action_schema.xsd
|
||||||
|
RUN mkdir -p /root/sia/lib/xml_schema_validator/src/
|
||||||
|
|
||||||
RUN --mount=type=cache,target=/root/.cache/pip \
|
RUN --mount=type=cache,target=/root/.cache/pip \
|
||||||
/root/venvs/sia/bin/pip install -e /root/sia/
|
/root/venvs/sia/bin/pip install -e /root/sia/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user