-
Notifications
You must be signed in to change notification settings - Fork 0
/
Docker
30 lines (25 loc) · 1.18 KB
/
Docker
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
# Author: Santosh J (https://github.com/sj-net)
# Use an eclipse-temurin image as OpenJDK images are deprecated.
FROM eclipse-temurin:latest
# Install curl and Node.js and clean unnecessary files.
RUN apt-get update && apt-get install -y curl && \
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Create and set the working directory
WORKDIR /usr/src/app
# . Install Firebase CLI globally
RUN npm install -g firebase-tools
# download and setup firebase emulators but do not start them.
# Only below emulators are available to download as on date. I need only ui and firestore so commented others.
RUN firebase setup:emulators:firestore
RUN firebase setup:emulators:ui
# RUN firebase setup:emulators:database
# RUN firebase setup:emulators:storage
# RUN firebase setup:emulators:pubsub
# RUN firebase setup:emulators:dataconnect
# Expose Firebase Emulator ports, including UI ports
# remove the ports that you feel are not required to expose.
# below are all the ports that firebase uses by default.
EXPOSE 4000 4400 4500 5000 5001 5002 8080 8085 9000 9199 9299 9399 9499 9099