File: e2e.dockerfile

package info (click to toggle)
pysequoia 0.1.29-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 652 kB
  • sloc: sh: 22; python: 20; makefile: 11
file content (16 lines) | stat: -rw-r--r-- 528 bytes parent folder | download | duplicates (2)
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