1# Create a virtual environment with all tools installed
2# ref: https://hub.docker.com/r/opensuse/tumbleweed
3FROM opensuse/tumbleweed AS base
4LABEL maintainer="corentinl@google.com"
5# Install system build dependencies
6ENV PATH=/usr/local/bin:$PATH
7RUN zypper update -y \
8&& zypper install -y git gcc gcc-c++ cmake \
9&& zypper clean -a
10ENV CC=gcc CXX=g++
11CMD [ "/usr/bin/bash" ]
12
13FROM base AS swig
14RUN zypper update -y \
15&& zypper install -y swig \
16&& zypper clean -a
17