13 lines
938 B
Docker
13 lines
938 B
Docker
# Rebuild explicitly when build tools or pinned Python dependencies change.
|
|
FROM docker.gitea.com/runner-images:ubuntu-latest@sha256:644f4875802f1cde9a3f9791ace83551559fe2eb3f72e1906872526e9603eb33
|
|
USER root
|
|
COPY tools/prepare-ci-apt.sh /tmp/prepare-ci-apt.sh
|
|
RUN /tmp/prepare-ci-apt.sh && \
|
|
find /etc/apt/sources.list.d -type f \( -name '*.list' -o -name '*.sources' \) -exec sed -i 's|https://archive.ubuntu.com/ubuntu/\{0,1\}|https://mirror.kumi.systems/ubuntu/|g' {} + && \
|
|
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
python3-venv squashfs-tools curl tar unzip git make flex bison gcc g++ bzip2 m4 podman && \
|
|
rm -rf /var/lib/apt/lists/* /tmp/prepare-ci-apt.sh
|
|
COPY requirements.txt /opt/mikrotik-olsr-requirements.txt
|
|
RUN python3 -m venv /opt/mikrotik-olsr-venv && \
|
|
/opt/mikrotik-olsr-venv/bin/pip install --no-cache-dir -r /opt/mikrotik-olsr-requirements.txt
|