From c23f1373e14fdce6f42eb8289788af50c36c4491 Mon Sep 17 00:00:00 2001 From: Harshit Tathagat <93983185+harshit82@users.noreply.github.com> Date: Tue, 16 May 2023 22:49:40 +0530 Subject: [PATCH 1/3] Update firebase.js --- src/firebase.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/firebase.js b/src/firebase.js index cd2d971af..3db152cee 100644 --- a/src/firebase.js +++ b/src/firebase.js @@ -1,4 +1,6 @@ -import firebase from "firebase"; +import firebase from 'firebase/compat/app'; +import 'firebase/compat/auth'; +import 'firebase/compat/firestore'; const firebaseConfig = { apiKey: "AIzaSyCcPSKlYtpdzBoAC8soeSmIARMzVKzrf5I", @@ -15,4 +17,4 @@ const firebaseApp = firebase.initializeApp(firebaseConfig); const db = firebaseApp.firestore(); const auth = firebase.auth(); -export { db, auth }; \ No newline at end of file +export { db, auth }; From c4ca4474ba9ce63593e72ff440788ac0fc354cc0 Mon Sep 17 00:00:00 2001 From: Harshit Tathagat <93983185+harshit82@users.noreply.github.com> Date: Tue, 16 May 2023 23:37:08 +0530 Subject: [PATCH 2/3] Create Dockerfile --- Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..a5f9b321e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM node:20-alpine3.16 +RUN sudo apt-get install npm +RUN sudo apt-get update +COPY . . +RUN npm install +RUN npm audit fix --force +RUN sudo npm install -g serve +CMD ["sudo", "serve", "-s" ,"build"] From 7af759c3cc37cc3df65637fbf268cfcbc325605a Mon Sep 17 00:00:00 2001 From: Harshit Tathagat <93983185+harshit82@users.noreply.github.com> Date: Wed, 17 May 2023 00:35:57 +0530 Subject: [PATCH 3/3] Update Dockerfile --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a5f9b321e..53de402cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,7 @@ FROM node:20-alpine3.16 -RUN sudo apt-get install npm -RUN sudo apt-get update COPY . . RUN npm install RUN npm audit fix --force -RUN sudo npm install -g serve +RUN npm build +RUN npm install -g serve CMD ["sudo", "serve", "-s" ,"build"]