1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
FROM rust
RUN apt-get update -y -qq && \
apt-get install -y -qq --no-install-recommends python-is-python3 python3-venv clang make pkg-config libssl-dev ca-certificates pip patchelf && \
apt-get clean
RUN cargo install --locked tangler
COPY . /build
WORKDIR /build
RUN tangler bash < README.md > README.sh
RUN tangler python < README.md > README.py
SHELL ["/bin/bash", "-c", "source README.sh && python README.py"]
# not sure why but "python README.py" needs to be above and below to be executed
RUN python README.py
|