-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (20 loc) · 653 Bytes
/
Dockerfile
File metadata and controls
24 lines (20 loc) · 653 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM node:24-alpine3.22 AS app-env
# Install Python and Java and pre-cache emulator dependencies.
RUN apk add --no-cache python3 py3-pip openjdk11-jre bash && \
npm install -g firebase-tools && \
firebase setup:emulators:firestore && \
firebase setup:emulators:database && \
firebase setup:emulators:pubsub && \
firebase setup:emulators:storage && \
firebase setup:emulators:ui && \
rm -rf /var/cache/apk/*
WORKDIR /app
COPY . .
## UI
RUN npm install
RUN npm run version:generate
RUN npm run build:docker
## Functions
RUN npm --prefix functions install
RUN npm --prefix functions run build
CMD ["npm", "run", "emulator"]