Files
reactfire/Dockerfile
Jeff 33f1e6ae78 Fix build: "sh: 1: node: Permission denied" (#199)
* add `--unsafe-perm` flag

* remove . so that .nvmrc file is used
2020-01-17 15:35:57 -08:00

35 lines
802 B
Docker

FROM debian:latest
SHELL ["/bin/bash", "-l", "-c"]
ENV CI true
# Installing Java (and curl)
RUN DEBIAN_FRONTEND=noninteractive apt-get update -qq < /dev/null > /dev/null
RUN DEBIAN_FRONTEND=noninteractive apt-get install -qq curl default-jre < /dev/null > /dev/null
RUN curl --silent -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh | bash
COPY .nvmrc /
RUN nvm install
RUN npm install --unsafe-perm -g yarn firebase-tools
RUN firebase setup:emulators:firestore
ENV PYTHON /usr/bin/python2.7
COPY package.json /
COPY yarn.lock /
COPY reactfire/package.json reactfire/
COPY sample/package.json sample/
RUN yarn install --frozen-lockfile
COPY . /
RUN cd reactfire && yarn build
RUN cd reactfire && yarn test
ARG SHORT_SHA=""
ARG NPM_TOKEN=""
ARG TAG_NAME=""
RUN ./publish.sh