build: Cleanup python2 from suse build and uplift opensuse version
[vpp.git] / extras / rpm / opensuse / Dockerfile
1 # Run from top of vpp repo with command:
2 # docker build -f extras/rpm/opensuse/Dockerfile .
3
4 ARG SUSE_VERSION=15.4
5
6 FROM opensuse/leap:${SUSE_VERSION} as vppbuild
7 COPY . /vpp
8 WORKDIR /vpp
9 RUN zypper refresh
10 RUN zypper install -y make sudo
11 COPY . .
12 RUN UNATTENDED=y make install-dep
13 RUN ln -s /usr/bin/cmake /usr/bin/cmake3
14 RUN UNATTENDED=y make install-ext-deps
15 RUN make pkg-rpm
16 CMD ["/bin/bash"]