Skip to content

Instantly share code, notes, and snippets.

@zeroows
Created June 12, 2023 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeroows/50d1d239cddaecb1f3ca4d1470fb42c9 to your computer and use it in GitHub Desktop.
Save zeroows/50d1d239cddaecb1f3ca4d1470fb42c9 to your computer and use it in GitHub Desktop.
Dockerfile for firebase admin tools
FROM ubuntu:latest
WORKDIR /app
COPY gcloud_configs/config_firebase_adminsdk_file.json .
RUN apt update 2>/dev/null && apt install curl -y
RUN curl -o firebase -L --progress-bar https://firebase.tools/bin/linux/latest
RUN chmod +rx firebase
ENV GOOGLE_APPLICATION_CREDENTIALS=/app/config_firebase_adminsdk_file.json
ENTRYPOINT ["./firebase", "-j"]
# to execute a command, run the container with the command as an argument
# e.g. docker run -it --rm <image_name> firestore:delete --project project_name -f -r /_CollectionName_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment