-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathDockerfile
46 lines (36 loc) · 1.13 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
FROM node:lts-alpine
ARG BUILD_DATE
ARG CI_JOB_ID
ARG CI_PIPELINE_ID
ARG VERSION
ARG VCS_REF
LABEL org.label-schema.schema-version="1.0" \
org.label-schema.name="firebase-tools" \
org.label-schema.version=${VERSION} \
org.label-schema.build-date=${BUILD_DATE} \
org.label-schema.description="Firebase CLI on the NodeJS image" \
org.label-schema.url="https://github.com/firebase/firebase-tools/" \
org.label-schema.vcs-url="https://github.com/AndreySenov/dockerfiles/" \
org.label-schema.vcs-ref=${VCS_REF} \
ci_job_id=${CI_JOB_ID} \
ci_pipeline_id=${CI_PIPELINE_ID}
ENV FIREBASE_TOOLS_VERSION=${VERSION}
ENV HOME=/home/node
RUN yarn global add firebase-tools@${VERSION} && \
yarn cache clean && \
firebase -V && \
mkdir $HOME/.cache && \
chown -R node:node $HOME
#USER node
VOLUME $HOME/.cache
#WORKDIR $HOME
WORKDIR /usr/app
#COPY package*.json ./
# If you are building your code for production
# RUN npm install --only=production
# Bundle app source
COPY . .
RUN cd ./functions && npm install
RUN ln -s /home/node/.firebaserc /usr/app/.firebaserc
EXPOSE 9005 5000
CMD ["sh"]