diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..53de402cb --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM node:20-alpine3.16 +COPY . . +RUN npm install +RUN npm audit fix --force +RUN npm build +RUN npm install -g serve +CMD ["sudo", "serve", "-s" ,"build"] 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 };