mirror of
https://github.com/zhigang1992/reactfire.git
synced 2026-06-12 09:08:43 +08:00
36 lines
853 B
Docker
36 lines
853 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 -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-complex/package.json sample-complex/
|
|
COPY sample-simple/package.json sample-simple/
|
|
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
|