Last active
December 21, 2015 14:49
-
-
Save ironicbadger/5d8cd968b3d4cfc7a76e to your computer and use it in GitHub Desktop.
This file contains 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 ubuntu | |
MAINTAINER IronicBadger <ironicbadger@linuxserver.io> | |
# Install MHDDFS compile pre-reqs for 14.04 | |
RUN apt-get update && \ | |
apt-get upgrade -y && \ | |
apt-get install -y \ | |
build-essential \ | |
libattr1-dev \ | |
libglib2.0-dev \ | |
dpkg-dev \ | |
git \ | |
curl \ | |
debhelper && \ | |
curl -LO http://ge.archive.ubuntu.com/ubuntu/pool/main/libs/libsepol/libsepol1_2.3-2_amd64.deb && \ | |
curl -LO http://ge.archive.ubuntu.com/ubuntu/pool/main/libs/libselinux/libselinux1_2.3-2build1_amd64.deb && \ | |
curl -LO http://ge.archive.ubuntu.com/ubuntu/pool/main/libs/libsepol/libsepol1-dev_2.3-2_amd64.deb && \ | |
curl -LO http://ge.archive.ubuntu.com/ubuntu/pool/main/libs/libselinux/libselinux1-dev_2.3-2build1_amd64.deb && \ | |
curl -LO http://ge.archive.ubuntu.com/ubuntu/pool/main/f/fuse/libfuse2_2.9.4-1ubuntu1_amd64.deb && \ | |
curl -LO http://ge.archive.ubuntu.com/ubuntu/pool/main/f/fuse/libfuse-dev_2.9.4-1ubuntu1_amd64.deb && \ | |
dpkg -i *.deb && \ | |
rm *.deb && \ | |
apt-get clean && \ | |
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
# Add source | |
RUN mkdir -p /tmp/mhddfs-nosegfault /artifact | |
ADD . /tmp/mhddfs-nosegfault/ | |
RUN cd /tmp/mhddfs-nosegfault && \ | |
dpkg-buildpackage && \ | |
cp /tmp/*.deb /artifact/ && \ | |
rm -rf /tmp/mhddfs-nosegfault |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment