Browse Source

new: replace ``shyaml`` python implementation with rust implementation

cache-relation
Valentin Lab 9 months ago
parent
commit
8b71a39e3b
  1. 11
      Dockerfile

11
Dockerfile

@ -57,8 +57,7 @@ RUN apk --update add binutils && \
RUN apk add python-dev build-base
RUN apk add yaml-dev cython cython-dev && \
pip install "cython<3.0.0" wheel && \
pip install pyyaml==5.4.1 --no-build-isolation && \
pip install shyaml
pip install pyyaml==5.4.1 --no-build-isolation
RUN pip install crudini
@ -150,6 +149,14 @@ RUN apk add patch
RUN sed -ri 's%^(mozilla/DST_Root_CA_X3.crt)%!\\1%g' /etc/ca-certificates.conf && \
update-ca-certificates
## New shyaml rust implementation
RUN apk add libgcc && \
wget https://docker.0k.io/downloads/shyaml-rs-musl-0.1.0.xz -O /tmp/shyaml-musl.xz && \
unxz /tmp/shyaml-musl.xz && \
mv /tmp/shyaml-musl /usr/local/bin/shyaml && \
chmod +x /usr/local/bin/shyaml
## install compose
COPY ./bin/ /usr/local/bin/

Loading…
Cancel
Save