Last active
May 22, 2016 04:49
-
-
Save warmwaffles/2a724db8d576c5e2044f18a65b742f5d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM nfnty/arch-mini | |
| # This is a dockerfile meant for people who are trying to cross compile their C projects | |
| # into windows binaries to ensure things actually compile correctly | |
| RUN pacman -Syyu --noconfirm | |
| RUN pacman -S --noconfirm git curl jshon expac yajl wget unzip cmake | |
| RUN pacman -S --noconfirm --needed base-devel | |
| RUN useradd -mg root travis | |
| RUN usermod -aG wheel travis | |
| RUN sed -i 's/# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL/g' /etc/sudoers | |
| WORKDIR /app | |
| USER travis | |
| RUN gpg --recv-keys --keyserver hkp://pgp.mit.edu 1EB2638FF56C0C53 | |
| RUN mkdir -p /tmp/cower | |
| RUN curl -s -o /tmp/cower/PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=cower | |
| RUN cd /tmp/cower && makepkg | |
| USER root | |
| RUN pacman --noconfirm -U /tmp/cower/*.tar.xz | |
| RUN rm -rf /tmp/cower | |
| USER travis | |
| RUN mkdir -p /tmp/pacaur | |
| RUN curl -s -o /tmp/pacaur/PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=pacaur | |
| RUN cd /tmp/pacaur && makepkg | |
| USER root | |
| RUN pacman --noconfirm -U /tmp/pacaur/*.tar.xz | |
| RUN rm -rf /tmp/pacaur | |
| USER travis | |
| RUN pacaur -S --noconfirm mingw-w64 | |
| RUN pacaur -S --noconfirm lib32-mesa-libgl | |
| RUN pacaur -S --noconfirm lib32-libxrandr | |
| RUN pacaur -S --noconfirm lib32-libxinerama | |
| RUN pacaur -S --noconfirm lib32-libxcursor | |
| CMD ["bash"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment