rclone/vendor/github.com/billziss-gh/cgofuse/Dockerfile

41 lines
1.3 KiB
Docker

FROM \
karalabe/xgo-latest
MAINTAINER \
Bill Zissimopoulos <billziss at navimatics.com>
# add 32-bit and 64-bit architectures and install 7zip
RUN \
dpkg --add-architecture i386 && \
dpkg --add-architecture amd64 && \
apt-get update && \
apt-get install -y --no-install-recommends p7zip-full
# install OSXFUSE
RUN \
wget -q -O osxfuse.dmg --no-check-certificate \
http://sourceforge.net/projects/osxfuse/files/osxfuse-2.8.3/osxfuse-2.8.3.dmg/download && \
7z e osxfuse.dmg 0.hfs &&\
7z e 0.hfs "FUSE for OS X/Install OSXFUSE 2.8.pkg" && \
7z e "Install OSXFUSE 2.8.pkg" 10.9/OSXFUSECore.pkg/Payload && \
7z e Payload && \
7z x Payload~ -o/tmp && \
cp -R /tmp/usr/local/include/osxfuse /usr/local/include && \
cp /tmp/usr/local/lib/libosxfuse_i64.2.dylib /usr/local/lib/libosxfuse.dylib
# install LIBFUSE
RUN \
apt-get install -y --no-install-recommends libfuse-dev:i386 && \
apt-get install -y --no-install-recommends libfuse-dev:amd64 && \
apt-get download libfuse-dev:i386 && \
dpkg -x libfuse-dev*i386*.deb /
# install WinFsp-FUSE
RUN \
wget -q -O winfsp.zip --no-check-certificate \
https://github.com/billziss-gh/winfsp/archive/v1.0.zip && \
7z e winfsp.zip 'winfsp-1.0/inc/fuse/*' -o/usr/local/include/winfsp
ENV \
OSXCROSS_NO_INCLUDE_PATH_WARNINGS 1