FROM 262628360495.dkr.ecr.us-east-1.amazonaws.com/dapi-docker:frontend-base

## Node-gyp needs python
RUN apk add --update \
    openssh-client \
    git \
    python \
    python-dev \
    py-pip \
    build-base \
  && pip install virtualenv \
  && rm -rf /var/cache/apk/*

## Shitty bullshit we have to do because as far as I can tell, there's no way to get bower to use a token to pull down frontend-std-lib
## without hosting your own private bower registry
RUN echo '{ "allow_root": true }' > /root/.bowerrc
RUN mkdir -p /root/.ssh/
COPY ssh/* /root/.ssh/
RUN chmod -R 600 /root/.ssh/*

RUN npm install -g grunt
