File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1717 && apt-get clean
1818
1919# Install Node.js 18 (for Firebase)
20- RUN curl -fsSL https://deb.nodesource.com/setup_18 .x | bash - && \
20+ RUN curl -fsSL https://deb.nodesource.com/setup_20 .x | bash - && \
2121 apt-get install -y --no-install-recommends nodejs
2222
2323# Verify installations
@@ -47,7 +47,7 @@ COPY . .
4747# Expose Firebase Emulator ports, including Web UI (4000)
4848EXPOSE 4000 5001 8080 9099 5000 9199
4949
50- RUN firebase --version
51- RUN which firebase
50+ # RUN firebase --version
51+ # RUN which firebase
5252
5353CMD ["firebase" , "emulators:start" , "--project" , "twocube-web" ]
Original file line number Diff line number Diff line change 44#
55# Runs both the frontend (Angular dev mode) and backend (Firebase).
66# Update commands/path if your project or run commands differ.
7+ echo " === Starting Olaf Backend (Firebase) ==="
8+ cd backend || exit
9+ chmod +x run_firebase.sh
10+ ./run_firebase.sh &
711
812echo " === Starting Olaf Frontend in Development Mode ==="
9- cd frontend || exit
13+ cd ../ frontend || exit
1014npm install
1115npm run dev & # run in the background
1216
1317echo " Frontend started in background."
1418echo
15-
16- echo " === Starting Olaf Backend (Firebase) ==="
17- cd backend || exit
18- chmod +x run_firebase
19- ./run_firebase
20-
2119# Once Firebase stops or is killed, the script ends.
2220# If you want to also kill the frontend automatically upon exit,
2321# you can track its PID and kill it here.
You can’t perform that action at this time.
0 commit comments