Created
June 12, 2023 14:58
-
-
Save zeroows/50d1d239cddaecb1f3ca4d1470fb42c9 to your computer and use it in GitHub Desktop.
Dockerfile for firebase admin tools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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