-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (22 loc) · 909 Bytes
/
Dockerfile
File metadata and controls
29 lines (22 loc) · 909 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
25
26
27
28
29
# NOTE: If you make any BREAKING CHANGE:
# - Update the Docker image tag in `./.github/workflows/docker-push-dev.yml`
# - Update the `mapswipe-backend` workflow to use the new image tag
FROM node:20-bullseye-slim AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN apt-get update -y \
&& apt-get install -y --no-install-recommends \
openjdk-11-jdk bash procps git \
&& corepack enable \
&& corepack prepare pnpm@10.6.1 --activate
WORKDIR /firebase
# renovate: datasource=github-tags depName=firebase/firebase-tools
ARG FIREBASE_TOOLS_VERSION=14.5.1
RUN --mount=type=cache,target=/root/.npm \
npm install -g firebase-tools@$FIREBASE_TOOLS_VERSION
FROM base AS emulator
# Pre-download firebase emulator tools
RUN firebase setup:emulators:database \
&& firebase setup:emulators:firestore \
&& firebase setup:emulators:storage \
&& firebase setup:emulators:ui