Sign inSign up

mtlynch/firestore-emulator

By mtlynch

Updated over 4 years ago

Google Cloud Firestore Emulator

Image
5

1M+

Dockerfile
ARG GCLOUD_SDK_VERSION=335.0.0-alpine

FROM google/cloud-sdk:$GCLOUD_SDK_VERSION
LABEL maintainer="Michael Lynch <[email protected]>"

# Install Java 8 JRE (required for Firestore emulator).
RUN apk add --update --no-cache openjdk8-jre

# Install Firestore Emulator.
RUN gcloud components install cloud-firestore-emulator beta --quiet

COPY entrypoint.sh .

ENV PORT 8080
EXPOSE "$PORT"

ENV FIRESTORE_PROJECT_ID "dummy-firestore-id"

ENTRYPOINT ["./entrypoint.sh"]