forked from FirebaseExtended/reactfire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (24 loc) · 790 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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/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