Last active
November 1, 2017 17:46
-
-
Save iamdtang/35cf37efd50674c5462ff0ed859f3669 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 node:6.11.5-alpine | |
LABEL maintainer="David Tang" | |
ENV BOWER_VERSION=1.8.2 APP_DIR=/app PATH=/root/.yarn/bin:$PATH | |
RUN apk add --no-cache --virtual build-dependencies \ | |
bash \ | |
curl \ | |
git \ | |
gnupg \ | |
build-base \ | |
automake \ | |
autoconf \ | |
tar \ | |
linux-headers && \ | |
touch ~/.bashrc && \ | |
/bin/bash && \ | |
mkdir /app && \ | |
curl -o- -L https://yarnpkg.com/install.sh | bash && \ | |
git clone https://github.com/facebook/watchman.git && \ | |
cd watchman && \ | |
git checkout v4.7.0 && \ | |
./autogen.sh && \ | |
./configure && \ | |
make && \ | |
make install && \ | |
yarn global add bower@$BOWER_VERSION && \ | |
apk del build-dependencies && \ | |
rm -Rf /tmp/* ** \ | |
rm -rf /var/cache/apk/* | |
WORKDIR /app | |
CMD ["bower", "install", "--allow-root"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment