# A basic apache server. To use either add or bind mount content under /var/www
FROM ubuntu:artful

MAINTAINER Florian Bach

RUN sed -i 's/archive/old-releases/' /etc/apt/sources.list; sed -i 's/security/old-releases/' /etc/apt/sources.list
RUN apt-get update && apt install -y wget curl make xz-utils patch gcc build-essential autoconf automake bison flex libncurses5-dev libreadline-dev texinfo pkg-config file libgmp-dev libmpfr-dev libmpc-dev libfreeimage-dev zlib1g-dev libusb-dev libudev-dev libexpat1-dev mesa-common-dev liblz4-dev python babeltrace
ENV BUILD_DKPRO_INSTALLDIR=/opt/devkitpro/
ENV BUILD_DKPRO_AUTOMATED=1 
ENV BUILD_DKPRO_PACKAGE=2  
# 1 = devkitARM, 2=devkitPPC, 3=devkitA64

# download and compile
RUN wget https://github.com/devkitPro/buildscripts/releases/download/v20190329/buildscripts-20190329.tar.bz2 && tar -xvf buildscripts-20190329.tar.bz2 && cd buildscripts && ./build-devkit.sh

RUN tar -cvf /opt/devkitpro/devkitPPC-r35-linux-ubuntu-artful.tar.gz -C /opt/devkitpro/ devkitPPC/



