FROM centos7-x86_64-toolchain:7.4-1
LABEL maintainer="Kjell Enblom <kjell-e@lysator.liu.se>"
# This is a wrapper container to use toolchaincontainerimage to build something.


ENV PATH=/opt/x-tools/x86_64-centos7-linux-gnu/bin:$PATH
ENV ARCH=x86_64
ENV CROSS_COMPILE=x86_64-centos7-linux-gnu-

# /build should already be empty
RUN rm -rf /build

# Run the wrapperscript /build/build.sh to (cross compile) build something.
ENTRYPOINT ["/build/build.sh"]

# Example to run this:
# docker run -it --rm -v ~/src/project:/build centos7-crosscompile-x86_64:1.0

# docker run -it --rm -v ~/src/project:/build centos7-crosscompile-x86_64:1.0 hello

# docker run -it --rm -v ~/src/project:/build centos7-crosscompile-x86_64:1.0 clean

