FROM base/archlinux:latest # install dependencies RUN pacman -Syu --noconfirm RUN pacman --noconfirm -S base-devel yajl nodejs git openssh imagemagick python2 RUN ln -s /usr/bin/python2 /usr/bin/python # install yaourt WORKDIR /tmp/scratch RUN curl https://aur.archlinux.org/packages/pa/package-query/package-query.tar.gz | tar zx WORKDIR /tmp/scratch/package-query RUN makepkg --asroot --noconfirm -i WORKDIR /tmp/scratch RUN curl https://aur.archlinux.org/packages/ya/yaourt/yaourt.tar.gz | tar zx WORKDIR /tmp/scratch/yaourt RUN makepkg --asroot --noconfirm -i WORKDIR / # install vips RUN yaourt --noconfirm -S vips # global dependency RUN npm install -g bower # reduce memory usage RUN npm config set jobs 1 # cache npm install WORKDIR /tmp ADD blenda/package.json /tmp/package.json ADD blenda/npm-shrinkwrap.json /tmp/npm-shrinkwrap.json RUN npm install --production # cache bower install ADD blenda/bower.json /tmp/bower.json RUN bower install --allow-root --config.interactive=false ADD blenda /opt/www RUN cp -a /tmp/node_modules /opt/www && cp -a /tmp/bower_components /opt/www/public/vendor CMD NODE_ENV=production node /opt/www/landing.js