-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (24 loc) · 973 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
# Firebase Tools - inspired by https://github.com/w9jds/firebase-action
# Releases: https://github.com/nodejs/Release#release-schedule
FROM node:11
LABEL version="1.0.0"
LABEL repository="https://github.com/uconndxlab/firebase-tools"
LABEL homepage="https://github.com/uconndxlab/firebase-tools"
LABEL maintainer="Brian Daley <[email protected]>"
LABEL com.github.actions.name="Firebase Tools for GitHub Actions"
LABEL com.github.actions.description="Wraps the firebase-tools CLI to enable common commands."
LABEL com.github.actions.icon="upload-cloud"
LABEL com.github.actions.color="orange"
# Node user...
# (see https://github.com/nodejs/node-gyp/issues/1236)
USER node
RUN mkdir /home/node/.npm-global
ENV PATH=/home/node/.npm-global/bin:$PATH
ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
# install firebase-tools
RUN npm install -g firebase-tools
ADD entrypoint.sh /entrypoint.sh
# reset user back to root
USER root
ENTRYPOINT ["/entrypoint.sh"]
CMD [ "--help" ]