Skip to content

Instantly share code, notes, and snippets.

@iamdtang
Last active November 1, 2017 17:46
Show Gist options
  • Save iamdtang/35cf37efd50674c5462ff0ed859f3669 to your computer and use it in GitHub Desktop.
Save iamdtang/35cf37efd50674c5462ff0ed859f3669 to your computer and use it in GitHub Desktop.
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