-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
33 lines (33 loc) · 983 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
FROM alpine:3
RUN apk add --quiet --update --no-cache bash nodejs npm openjdk17-jre vim
RUN npm install -g firebase-tools
RUN mkdir -p /firebase/volume
WORKDIR /firebase
COPY entrypoint.sh .
# the mount point for a project
VOLUME /firebase/volume
WORKDIR /firebase/volume
COPY firebase.json .
COPY database.rules.json .
COPY firestore.rules .
COPY storage.rules .
# required to launch ui
ENV FIREBASE_PROJECT_ID=
# required to perform some cli operations
# https://firebase.google.com/docs/cli#cli-ci-systems
ENV FIREBASE_TOKEN=
# the default ports used by cli
# https://firebase.google.com/docs/emulator-suite/install_and_configure#port_configuration
EXPOSE 4000
EXPOSE 5000
EXPOSE 5001
EXPOSE 8080
EXPOSE 8085
EXPOSE 9000
EXPOSE 9099
EXPOSE 9199
# 9005 is used by `firebase login:ci`
EXPOSE 9005
ENTRYPOINT ["/firebase/entrypoint.sh"]
# the default operation is running the emulators
CMD ["--non-interactive", "emulators:start", "--import", "./data", "--export-on-exit", "./data"]