Skip to content

Instantly share code, notes, and snippets.

@warmwaffles
Created September 11, 2016 19:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save warmwaffles/df0afc494170367d093129c3517c2e38 to your computer and use it in GitHub Desktop.
Save warmwaffles/df0afc494170367d093129c3517c2e38 to your computer and use it in GitHub Desktop.
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 ci
RUN usermod -aG wheel ci
RUN sed -i 's/# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL/g' /etc/sudoers
WORKDIR /app
USER ci
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 ci
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 ci
RUN pacaur -S --noconfirm mingw-w64
RUN pacaur -S --noconfirm mingw-w64-assimp
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"]
ADD . /app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment