Sign inSign up

yinanzhou/firebase

By yinanzhou

•Updated 6 days ago

Firebase CLI + Database Emulator pre-cached on OpenJDK 17 & Alpine

Image
Developer tools
0

2.2K

yinanzhou/firebase repository overview

⁠yinanzhou/firebase:database-emulator

pipeline status

A Docker image containing the Firebase CLI and the Firebase Database Emulator pre-cached, based on OpenJDK 17 (Eclipse Temurin) and Alpine Linux. This image is designed to speed up CI/CD pipelines and local development by avoiding the download of the emulator jar on every run.

⁠Features

  • Firebase CLI: The firebase-tools package installed globally.
  • Firebase Database Emulator: Pre-downloaded and ready to use (firebase setup:emulators:database).
  • Java 17: Required by the Firebase emulators.
  • Node.js & NPM: Installed to support Firebase tools.
  • Alpine Linux: Minimal base for a smaller image size.

⁠Usage

You can use this image to run the Firebase Database Emulator.

⁠Start the Emulator
docker run --rm -p 9000:9000 yinanzhou/firebase:database-emulator firebase emulators:start --only database

Note: You may need to configure Firebase to bind to 0.0.0.0 in your firebase.json to access it from the host.

⁠Source Repository

The source code for this Dockerfile is maintained in the following repository: GitLab: yinanzhou/docker-images⁠

Tag summary

Content type

Image

Digest

sha256:c2c155913…

Size

332.1 MB

Last updated

6 days ago

docker pull yinanzhou/firebase:database-emulator